diff options
author | rubidium <rubidium@openttd.org> | 2007-08-31 20:03:50 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-08-31 20:03:50 +0000 |
commit | 8c85125fd9c06d1470f02e807bf359329338f97b (patch) | |
tree | 415396983bfb3bebc07546a999219c6403a98422 /src/clear_cmd.cpp | |
parent | a8033758e7bcae1f48ea3575385c3cfcd1c10213 (diff) | |
download | openttd-8c85125fd9c06d1470f02e807bf359329338f97b.tar.xz |
(svn r11024) -Fix [FS#1173]: give a more correct error when building some things on tile 0; "Can't build on water" or "Too close to the edge" instead of "Vehicle in the way". Patch by SmatZ.
Diffstat (limited to 'src/clear_cmd.cpp')
-rw-r--r-- | src/clear_cmd.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/clear_cmd.cpp b/src/clear_cmd.cpp index 793497703..c89e5c6cb 100644 --- a/src/clear_cmd.cpp +++ b/src/clear_cmd.cpp @@ -403,8 +403,6 @@ CommandCost CmdPurchaseLandArea(TileIndex tile, uint32 flags, uint32 p1, uint32 SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION); - if (!EnsureNoVehicle(tile)) return CMD_ERROR; - if (IsOwnedLandTile(tile) && IsTileOwner(tile, _current_player)) { return_cmd_error(STR_5807_YOU_ALREADY_OWN_IT); } |