summaryrefslogtreecommitdiff
path: root/src/clear_cmd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-10-14 20:12:51 +0000
committerrubidium <rubidium@openttd.org>2007-10-14 20:12:51 +0000
commit64a6d3daad312145da48d6f053266215077780d7 (patch)
tree9b6ad6c01655aa798e888b684aecc7a4ca2e05c6 /src/clear_cmd.cpp
parent486e4bbca25a0760157140b7d1f1a02b7efcc8d1 (diff)
downloadopenttd-64a6d3daad312145da48d6f053266215077780d7.tar.xz
(svn r11262) -Fix [FS#1330]: do not check for vehicles that are not on the ground when removing owned land, furthermore do not check for shadows (of aircraft).
Diffstat (limited to 'src/clear_cmd.cpp')
-rw-r--r--src/clear_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clear_cmd.cpp b/src/clear_cmd.cpp
index 77f42552b..a39bf24a6 100644
--- a/src/clear_cmd.cpp
+++ b/src/clear_cmd.cpp
@@ -480,7 +480,7 @@ CommandCost CmdSellLandArea(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (!CheckTileOwnership(tile) && _current_player != OWNER_WATER) return CMD_ERROR;
- if (!EnsureNoVehicle(tile)) return CMD_ERROR;
+ if (!EnsureNoVehicleOnGround(tile)) return CMD_ERROR;
if (flags & DC_EXEC) DoClearSquare(tile);