summaryrefslogtreecommitdiff
path: root/src/vehicle.cpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2008-04-17 18:24:45 +0000
committersmatz <smatz@openttd.org>2008-04-17 18:24:45 +0000
commitec588da9e85bd4f9dffaa3354ed1d9f8b74eced7 (patch)
tree1d21e0ab2e3402600dc144e6cfc0d1e0b5725da1 /src/vehicle.cpp
parentb0e687f60c006c31a069a523d50915f9169b88b1 (diff)
downloadopenttd-ec588da9e85bd4f9dffaa3354ed1d9f8b74eced7.tar.xz
(svn r12753) -Codechange: do not use IsDepotTypeTile() where simpler function can be used
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index 432774210..8a65c8d02 100644
--- a/src/vehicle.cpp
+++ b/src/vehicle.cpp
@@ -3217,7 +3217,7 @@ CommandCost Vehicle::SendToDepot(uint32 flags, DepotCommand command)
/* check if at a standstill (not stopped only) in a depot
* the check is down here to make it possible to alter stop/service for trains entering the depot */
- if (this->type == VEH_TRAIN && IsDepotTypeTile(this->tile, TRANSPORT_RAIL) && this->cur_speed == 0) return CMD_ERROR;
+ if (this->type == VEH_TRAIN && IsRailDepotTile(this->tile) && this->cur_speed == 0) return CMD_ERROR;
TileIndex location;
DestinationID destination;