--- a/src/rail_cmd.cpp Sat Feb 24 00:17:46 2007 +0000
+++ b/src/rail_cmd.cpp Sat Feb 24 06:46:20 2007 +0000
@@ -553,7 +553,6 @@
SET_EXPENSES_TYPE(EXPENSES_CONSTRUCTION);
- if (!EnsureNoVehicle(tile)) return CMD_ERROR;
/* check railtype and valid direction for depot (0 through 3), 4 in total */
if (!ValParamRailtype(p1) || p2 > 3) return CMD_ERROR;
--- a/src/road_cmd.cpp Sat Feb 24 00:17:46 2007 +0000
+++ b/src/road_cmd.cpp Sat Feb 24 06:46:20 2007 +0000
@@ -518,8 +518,6 @@
if (p1 > 3) return CMD_ERROR; // check direction
- if (!EnsureNoVehicle(tile)) return CMD_ERROR;
-
tileh = GetTileSlope(tile, NULL);
if (tileh != SLOPE_FLAT && (
!_patches.build_on_slopes ||
--- a/src/station_cmd.cpp Sat Feb 24 00:17:46 2007 +0000
+++ b/src/station_cmd.cpp Sat Feb 24 06:46:20 2007 +0000
@@ -1747,15 +1747,11 @@
if (!(flags & DC_NO_TOWN_RATING) && !CheckIfAuthorityAllows(tile)) return CMD_ERROR;
- if (!EnsureNoVehicle(tile)) return CMD_ERROR;
-
cost = DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
if (CmdFailed(cost)) return CMD_ERROR;
TileIndex tile_cur = tile + TileOffsByDiagDir(direction);
- if (!EnsureNoVehicle(tile_cur)) return CMD_ERROR;
-
if (!IsTileType(tile_cur, MP_WATER) || GetTileSlope(tile_cur, NULL) != SLOPE_FLAT) {
return_cmd_error(STR_304B_SITE_UNSUITABLE);
}
--- a/src/town_cmd.cpp Sat Feb 24 00:17:46 2007 +0000
+++ b/src/town_cmd.cpp Sat Feb 24 06:46:20 2007 +0000
@@ -350,8 +350,6 @@
int32 cost;
Town *t;
- // safety checks
- if (!EnsureNoVehicle(tile)) return CMD_ERROR;
if (flags&DC_AUTO && !(flags&DC_AI_BUILDING)) return_cmd_error(STR_2004_BUILDING_MUST_BE_DEMOLISHED);
house = GetHouseType(tile);
@@ -1303,8 +1301,6 @@
{
int32 r;
- // make sure it's possible
- if (!EnsureNoVehicle(tile)) return false;
if (IsSteepSlope(GetTileSlope(tile, NULL))) return false;
if (MayHaveBridgeAbove(tile) && IsBridgeAbove(tile)) return false;
--- a/src/tree_cmd.cpp Sat Feb 24 00:17:46 2007 +0000
+++ b/src/tree_cmd.cpp Sat Feb 24 06:46:20 2007 +0000
@@ -237,8 +237,6 @@
for (y = sy; y <= ey; y++) {
TileIndex tile = TileXY(x, y);
- if (!EnsureNoVehicle(tile)) continue;
-
switch (GetTileType(tile)) {
case MP_TREES:
// no more space for trees?