(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

@@ -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 */