summaryrefslogtreecommitdiff
path: root/disaster_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'disaster_cmd.c')
-rw-r--r--disaster_cmd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/disaster_cmd.c b/disaster_cmd.c
index 7ca50a7cb..e0fc51b04 100644
--- a/disaster_cmd.c
+++ b/disaster_cmd.c
@@ -27,7 +27,12 @@ static void DisasterClearSquare(TileIndex tile)
switch (GetTileType(tile)) {
case MP_RAILWAY:
- if (IS_HUMAN_PLAYER(GetTileOwner(tile)) && !IsRailWaypoint(tile)) DoClearSquare(tile);
+ if (IS_HUMAN_PLAYER(GetTileOwner(tile)) && !IsRailWaypoint(tile)) {
+ PlayerID p = _current_player;
+ _current_player = OWNER_WATER;
+ DoCommand(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR);
+ _current_player = p;
+ }
break;
case MP_HOUSE: {