diff options
author | smatz <smatz@openttd.org> | 2008-04-17 00:44:20 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2008-04-17 00:44:20 +0000 |
commit | 9488db56d4994cb653129e7d82973ae827537e05 (patch) | |
tree | 5f5827bd541cf5d637cd23faa64aea957404ca89 /src/vehicle.cpp | |
parent | 1367c9016149f3e750bf5cb2b0f7cbe0dbfaee1b (diff) | |
download | openttd-9488db56d4994cb653129e7d82973ae827537e05.tar.xz |
(svn r12745) -Codechange: a bit of naming conventions, introduce Is*DepotTile()
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 54cb8e288..432774210 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 && IsTileDepotType(this->tile, TRANSPORT_RAIL) && this->cur_speed == 0) return CMD_ERROR; + if (this->type == VEH_TRAIN && IsDepotTypeTile(this->tile, TRANSPORT_RAIL) && this->cur_speed == 0) return CMD_ERROR; TileIndex location; DestinationID destination; |