summaryrefslogtreecommitdiff
path: root/train_cmd.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-09-27 12:17:33 +0000
committerbjarni <bjarni@openttd.org>2006-09-27 12:17:33 +0000
commit5dbfb5c272ba058dc0204b63fecb6e312aefa6b8 (patch)
tree272876206354bfaac7ac0db771c7fee3c49a6f77 /train_cmd.c
parentf18405dfd028c362c9f18f8836a00f02f5e2eb56 (diff)
downloadopenttd-5dbfb5c272ba058dc0204b63fecb6e312aefa6b8.tar.xz
(svn r6524) -Code cleanup r6515: cleaned up the command to start/stop all vehicles in a depot.
IsWholeTrainInDepot() is removed as CheckTrainInDepot() could be used instead Cleaned up the check to see if a vehicle is valid for start/stop
Diffstat (limited to 'train_cmd.c')
-rw-r--r--train_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/train_cmd.c b/train_cmd.c
index c63941e59..d3533ac39 100644
--- a/train_cmd.c
+++ b/train_cmd.c
@@ -832,7 +832,7 @@ int32 CmdBuildRailVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
/* Check if all the wagons of the given train are in a depot, returns the
* number of cars (including loco) then. If not it returns -1 */
-static int CheckTrainInDepot(const Vehicle *v, bool needs_to_be_stopped)
+int CheckTrainInDepot(const Vehicle *v, bool needs_to_be_stopped)
{
int count;
TileIndex tile = v->tile;