summaryrefslogtreecommitdiff
path: root/src/rail_cmd.cpp
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-02-24 06:46:20 +0000
committertron <tron@openttd.org>2007-02-24 06:46:20 +0000
commitac75cf0ae136626c5c998d556c8ed38410191ceb (patch)
treedc9610214fcd9e5497b8289fdb59c506a6007a31 /src/rail_cmd.cpp
parentefb3637d0f7fc423e2b4f31a67058455a5183da5 (diff)
downloadopenttd-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/rail_cmd.cpp')
-rw-r--r--src/rail_cmd.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/rail_cmd.cpp b/src/rail_cmd.cpp
index 437d19463..d74b30096 100644
--- a/src/rail_cmd.cpp
+++ b/src/rail_cmd.cpp
@@ -553,7 +553,6 @@ int32 CmdBuildTrainDepot(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
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;