From ad28875cfce848ca6eabaa7cdd51c4115436934e Mon Sep 17 00:00:00 2001 From: Andrii Dokhniak Date: Sat, 8 Jun 2024 16:29:10 +0200 Subject: [PATCH] small fixup --- src/rail_map.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/rail_map.h b/src/rail_map.h index 3ca6ac1234..7b2170e3ed 100644 --- a/src/rail_map.h +++ b/src/rail_map.h @@ -528,7 +528,6 @@ inline void MakeRailNormal(Tile t, Owner o, TrackBits b, RailType r) SB(t.m6(), 2, 4, 0); t.m7() = 0; t.m8() = r; - t.m9() = 0; } /** @@ -552,6 +551,9 @@ inline void SetRailDepotExitDirection(Tile tile, DiagDirection dir) */ inline void MakeRailDepot(Tile tile, Owner owner, DepotID depot_id, DiagDirection dir, RailType rail_type) { + SetTileType(tile, MP_RAILWAY); + SetDockingTile(tile, false); + SetTileOwner(tile, owner); tile.m1() = 0; tile.m2() = depot_id; tile.m3() = 0; @@ -560,10 +562,6 @@ inline void MakeRailDepot(Tile tile, Owner owner, DepotID depot_id, DiagDirectio SB(tile.m6(), 2, 4, 0); tile.m7() = 0; tile.m8() = rail_type; - tile.m9() = 0; - SetTileType(tile, MP_RAILWAY); - SetDockingTile(tile, false); - SetTileOwner(tile, owner); } #endif /* RAIL_MAP_H */