summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorterkhen <terkhen@openttd.org>2010-02-25 21:43:28 +0000
committerterkhen <terkhen@openttd.org>2010-02-25 21:43:28 +0000
commit17288d6c8051e7e6e27e791cabfce6673d7d24e9 (patch)
tree71c823a53da46cea481e60634ad3cef390402315 /src
parentebab6120e6010d54f18219d41e7ed7e92906e871 (diff)
downloadopenttd-17288d6c8051e7e6e27e791cabfce6673d7d24e9.tar.xz
(svn r19259) -Fix (r19230): Road stops were not removed in case of bankruptcy.
Diffstat (limited to 'src')
-rw-r--r--src/station_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp
index e7ed6e827..8ca62a8df 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -3367,7 +3367,7 @@ static void ChangeTileOwner_Station(TileIndex tile, Owner old_owner, Owner new_o
} else {
if (IsDriveThroughStopTile(tile)) {
/* 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));
/* Change owner of tile and all roadtypes */
ChangeTileOwner(tile, old_owner, new_owner);