mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r25251) -Fix [FS#5540]: when overbuilding a reserved track with a non-track station tile, that tile would remain reserved and eventually trigger a crash upon removal
This commit is contained in:
parent
3e163928c3
commit
1a0c081c18
|
@ -1317,6 +1317,9 @@ CommandCost CmdBuildRailStation(TileIndex tile_org, DoCommandFlag flags, uint32
|
||||||
}
|
}
|
||||||
|
|
||||||
TILE_AREA_LOOP(tile, update_reservation_area) {
|
TILE_AREA_LOOP(tile, update_reservation_area) {
|
||||||
|
/* Don't even try to make eye candy parts reserved. */
|
||||||
|
if (IsStationTileBlocked(tile)) continue;
|
||||||
|
|
||||||
DiagDirection dir = AxisToDiagDir(axis);
|
DiagDirection dir = AxisToDiagDir(axis);
|
||||||
TileIndexDiff tile_offset = TileOffsByDiagDir(dir);
|
TileIndexDiff tile_offset = TileOffsByDiagDir(dir);
|
||||||
TileIndex platform_begin = tile;
|
TileIndex platform_begin = tile;
|
||||||
|
|
Loading…
Reference in New Issue