mirror of
https://github.com/OpenTTD/OpenTTD
synced 2025-12-10 06:52:05 +01:00
Fix: Don't set set town index for depot tiles. (#14729)
This commit is contained in:
@@ -1007,6 +1007,7 @@ bool AfterLoadGame()
|
||||
|
||||
case MP_ROAD:
|
||||
t.m4() |= (t.m2() << 4);
|
||||
if (GB(t.m5(), 4, 2) == ROAD_TILE_DEPOT) break;
|
||||
if ((GB(t.m5(), 4, 2) == ROAD_TILE_CROSSING ? (Owner)t.m3() : GetTileOwner(t)) == OWNER_TOWN) {
|
||||
SetTownIndex(t, CalcClosestTownFromTile(t)->index);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user