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
commit97210faa75d3cf3f3bdd81dcf6a8494e120ab8b1 (patch)
tree272876206354bfaac7ac0db771c7fee3c49a6f77 /train_cmd.c
parentcbf2310bb5abe6da4f42371a89d3c6373d0dc32f (diff)
downloadopenttd-97210faa75d3cf3f3bdd81dcf6a8494e120ab8b1.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;