(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.

This commit is contained in:
rubidium
2007-08-31 20:03:50 +00:00
parent a8033758e7
commit 8c85125fd9
3 changed files with 8 additions and 14 deletions

View File

@@ -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)) {