mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-16 00:12:51 +00:00
(svn r25152) -Fix-ish [FS#5520]: remove stray reservation from savegames affected by FS#5510 et al. upon loading
This commit is contained in:
parent
6772aebbb6
commit
aa2c1ce4b0
@ -2770,6 +2770,14 @@ bool AfterLoadGame()
|
|||||||
v->acceleration = avi->acceleration;
|
v->acceleration = avi->acceleration;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Blocked tiles could be reserved due to a bug, which causes
|
||||||
|
* other places to assert upon e.g. station reconstruction. */
|
||||||
|
for (TileIndex t = 0; t < map_size; t++) {
|
||||||
|
if (HasStationTileRail(t) && IsStationTileBlocked(t)) {
|
||||||
|
SetRailStationReservation(t, false);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Road stops is 'only' updating some caches */
|
/* Road stops is 'only' updating some caches */
|
||||||
|
Loading…
Reference in New Issue
Block a user