summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-16 10:10:22 +0000
committerrubidium <rubidium@openttd.org>2007-06-16 10:10:22 +0000
commitf5f1909b232930bf86551f572dfba2fd704f0a83 (patch)
tree6d357985409b12eaf9e9aa1abc6378bb0f00ca77
parent0f0b58d429b1103687a2e4e9a51d2221ba0e8f01 (diff)
downloadopenttd-f5f1909b232930bf86551f572dfba2fd704f0a83.tar.xz
(svn r10168) -Fix [FS#879]: cannot build airport when an aircraft is flying over it.
-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 a841fa6a3..08ebbe58c 100644
--- a/src/station_cmd.cpp
+++ b/src/station_cmd.cpp
@@ -626,7 +626,7 @@ int32 CheckFlatLandBelow(TileIndex tile, uint w, uint h, uint flags, uint invali
return_cmd_error(STR_5007_MUST_DEMOLISH_BRIDGE_FIRST);
}
- if (!EnsureNoVehicle(tile_cur)) return CMD_ERROR;
+ if (!EnsureNoVehicleOnGround(tile_cur)) return CMD_ERROR;
uint z;
Slope tileh = GetTileSlope(tile_cur, &z);