(svn r6515) -Feature: added "start all" and "stop all" buttons to the depot windows

This commit is contained in:
bjarni
2006-09-26 19:20:35 +00:00
parent d6542d0844
commit 7ac9005d5e
6 changed files with 99 additions and 16 deletions

View File

@@ -218,4 +218,12 @@ 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;
}
#endif /* TRAIN_H */