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/tree_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/tree_cmd.cpp')
-rw-r--r-- | src/tree_cmd.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/tree_cmd.cpp b/src/tree_cmd.cpp index 7419457d4..52010a205 100644 --- a/src/tree_cmd.cpp +++ b/src/tree_cmd.cpp @@ -255,6 +255,11 @@ CommandCost CmdPlantTree(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) cost.AddCost(_price.build_trees * 2); break; + case MP_WATER: + msg = STR_3807_CAN_T_BUILD_ON_WATER; + continue; + break; + case MP_CLEAR: if (!IsTileOwner(tile, OWNER_NONE) || IsBridgeAbove(tile)) { |