mirror of https://github.com/OpenTTD/OpenTTD
(svn r19259) -Fix (r19230): Road stops were not removed in case of bankruptcy.
parent
ebab6120e6
commit
17288d6c80
|
@ -3367,7 +3367,7 @@ static void ChangeTileOwner_Station(TileIndex tile, Owner old_owner, Owner new_o
|
||||||
} else {
|
} else {
|
||||||
if (IsDriveThroughStopTile(tile)) {
|
if (IsDriveThroughStopTile(tile)) {
|
||||||
/* Remove the drive-through road stop */
|
/* Remove the drive-through road stop */
|
||||||
DoCommand(tile, 0, (GetStationType(tile) == STATION_TRUCK) ? ROADSTOP_TRUCK : ROADSTOP_BUS, DC_EXEC | DC_BANKRUPT, CMD_REMOVE_ROAD_STOP);
|
DoCommand(tile, 1 | 1 << 8, (GetStationType(tile) == STATION_TRUCK) ? ROADSTOP_TRUCK : ROADSTOP_BUS, DC_EXEC | DC_BANKRUPT, CMD_REMOVE_ROAD_STOP);
|
||||||
assert(IsTileType(tile, MP_ROAD));
|
assert(IsTileType(tile, MP_ROAD));
|
||||||
/* Change owner of tile and all roadtypes */
|
/* Change owner of tile and all roadtypes */
|
||||||
ChangeTileOwner(tile, old_owner, new_owner);
|
ChangeTileOwner(tile, old_owner, new_owner);
|
||||||
|
|
Loading…
Reference in New Issue