(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:
@@ -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)) {
|
||||
|
Reference in New Issue
Block a user