diff options
author | tron <tron@openttd.org> | 2007-02-24 06:46:20 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2007-02-24 06:46:20 +0000 |
commit | ac75cf0ae136626c5c998d556c8ed38410191ceb (patch) | |
tree | dc9610214fcd9e5497b8289fdb59c506a6007a31 /src/station_cmd.cpp | |
parent | efb3637d0f7fc423e2b4f31a67058455a5183da5 (diff) | |
download | openttd-ac75cf0ae136626c5c998d556c8ed38410191ceb.tar.xz |
(svn r8875) -Fix
Remove unnecessary EnsureNoVehicle() checks because they are
- pointless per se (f.e. there are no vehicles on house tiles)
- done again (f.e. using CMD_LANDSCAPE_CLEAR just a few lines later)
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 19ba9787e..f60e60ec1 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -1747,15 +1747,11 @@ int32 CmdBuildDock(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) 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); } |