summaryrefslogtreecommitdiff
path: root/src/disaster_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-10-19 22:46:55 +0000
committerrubidium <rubidium@openttd.org>2007-10-19 22:46:55 +0000
commit8342c18fb5f96465c917f9f89ec31765b0c21c6c (patch)
tree94325422edf35b6645a697ffa3bfd15ed090bf01 /src/disaster_cmd.cpp
parent3b08339a10df6c5aa761930565cd928c95aa0773 (diff)
downloadopenttd-8342c18fb5f96465c917f9f89ec31765b0c21c6c.tar.xz
(svn r11303) -Fix: EnsureNoVehicle and EnsureNoVehicleOnGround were both used to check whether there was no vehicle on the ground, except that the former didn't take care of aircraft shadows. So now we only use EnsureNoVehicleOnGround.
Diffstat (limited to 'src/disaster_cmd.cpp')
-rw-r--r--src/disaster_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/disaster_cmd.cpp b/src/disaster_cmd.cpp
index 7034a16e0..c596be9b1 100644
--- a/src/disaster_cmd.cpp
+++ b/src/disaster_cmd.cpp
@@ -60,7 +60,7 @@ enum DisasterSubType {
static void DisasterClearSquare(TileIndex tile)
{
- if (!EnsureNoVehicle(tile)) return;
+ if (!EnsureNoVehicleOnGround(tile)) return;
switch (GetTileType(tile)) {
case MP_RAILWAY: