diff options
author | Darkvater <Darkvater@openttd.org> | 2005-09-17 13:57:01 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2005-09-17 13:57:01 +0000 |
commit | 3536bbdad04516119670437c0f2d5c9146d6c254 (patch) | |
tree | cb77e23702ba9a21197380929b6d45716b3faadc /disaster_cmd.c | |
parent | cffcdf07d37d92e53c36c1f12d4f9d73ec30397f (diff) | |
download | openttd-3536bbdad04516119670437c0f2d5c9146d6c254.tar.xz |
(svn r2961) - Fix: [ 1219123 ] Fix for [ 1216203 ] UFO-broken waypoint (lucaspiller)
Diffstat (limited to 'disaster_cmd.c')
-rw-r--r-- | disaster_cmd.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/disaster_cmd.c b/disaster_cmd.c index 7b3fae9cc..ea9c9abbe 100644 --- a/disaster_cmd.c +++ b/disaster_cmd.c @@ -10,6 +10,7 @@ #include "command.h" #include "news.h" #include "station.h" +#include "waypoint.h" #include "town.h" #include "industry.h" #include "player.h" @@ -24,11 +25,11 @@ static void DisasterClearSquare(TileIndex tile) switch (GetTileType(tile)) { case MP_RAILWAY: - if (IS_HUMAN_PLAYER(GetTileOwner(tile))) DoClearSquare(tile); + if (IS_HUMAN_PLAYER(GetTileOwner(tile)) && !IsRailWaypoint(_m[tile].m5)) DoClearSquare(tile); break; case MP_HOUSE: { - byte p = _current_player; + PlayerID p = _current_player; _current_player = OWNER_NONE; DoCommandByTile(tile, 0, 0, DC_EXEC, CMD_LANDSCAPE_CLEAR); _current_player = p; |