1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2025-12-10 15:02:06 +01:00

Fix: Don't set set town index for depot tiles. (#14729)

This commit is contained in:
Peter Nelson
2025-10-24 20:30:50 +01:00
committed by GitHub
parent 06b830dc07
commit 813cde3735

View File

@@ -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 {