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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user