diff options
author | bjarni <bjarni@openttd.org> | 2006-09-27 12:17:33 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-09-27 12:17:33 +0000 |
commit | 5dbfb5c272ba058dc0204b63fecb6e312aefa6b8 (patch) | |
tree | 272876206354bfaac7ac0db771c7fee3c49a6f77 /train.h | |
parent | f18405dfd028c362c9f18f8836a00f02f5e2eb56 (diff) | |
download | openttd-5dbfb5c272ba058dc0204b63fecb6e312aefa6b8.tar.xz |
(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
Diffstat (limited to 'train.h')
-rw-r--r-- | train.h | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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 */ |