1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-22 14:09:10 +00:00

(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
This commit is contained in:
bjarni
2006-09-27 12:17:33 +00:00
parent f18405dfd0
commit 5dbfb5c272
3 changed files with 11 additions and 13 deletions

View File

@@ -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;