Fix #12118: When adding an unbunching order, properly check for unsafe conditions (#12136)

This commit is contained in:
Tyler Trahan
2024-03-09 08:28:05 -05:00
committed by GitHub
parent 6e0f58f700
commit ab315d0dc9
4 changed files with 61 additions and 12 deletions

View File

@@ -819,6 +819,8 @@ public:
inline void SetServiceIntervalIsPercent(bool on) { SB(this->vehicle_flags, VF_SERVINT_IS_PERCENT, 1, on); }
bool HasFullLoadOrder() const;
bool HasConditionalOrder() const;
bool HasUnbunchingOrder() const;
void LeaveUnbunchingDepot();
bool IsWaitingForUnbunching() const;