forked from mirror/OpenTTD
(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:
8
train.h
8
train.h
@@ -218,12 +218,6 @@ static inline Vehicle *GetNextVehicle(const Vehicle *v)
|
||||
void ConvertOldMultiheadToNew(void);
|
||||
void ConnectMultiheadedTrains(void);
|
||||
|
||||
static inline bool IsWholeTrainInDepot(const Vehicle *v)
|
||||
{
|
||||
for (; v != NULL; v = v->next) {
|
||||
if (!(v->vehstatus & VS_HIDDEN)) return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
int CheckTrainInDepot(const Vehicle *v, bool needs_to_be_stopped);
|
||||
|
||||
#endif /* TRAIN_H */
|
||||
|
Reference in New Issue
Block a user