Add a "leave early" order timetable flag
Re-arrange timetable GUI slightly. Add an "extra" drop-down item.
This commit is contained in:
@@ -432,6 +432,15 @@ public:
|
||||
if (!this->IsType(OT_CONDITIONAL) && fixed != IsWaitFixed()) SB(this->GetXFlagsRef(), 1, 1, fixed ? 1 : 0);
|
||||
}
|
||||
|
||||
/** Get the leave type */
|
||||
inline OrderLeaveType GetLeaveType() const { return (OrderLeaveType)GB(this->GetXFlags(), 2, 2); }
|
||||
|
||||
/** Set the leave type */
|
||||
inline void SetLeaveType(OrderLeaveType leave_type)
|
||||
{
|
||||
if (leave_type != this->GetLeaveType()) SB(this->GetXFlagsRef(), 2, 2, leave_type);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the occupancy value
|
||||
* @return occupancy
|
||||
|
||||
Reference in New Issue
Block a user