Add next order condition variable.

This commit is contained in:
Jonathan G Rennison
2015-07-24 19:00:38 +01:00
parent ffed0c194a
commit 2296fc85e6
4 changed files with 21 additions and 1 deletions

View File

@@ -83,6 +83,7 @@ enum TraceRestrictItemType {
TRIT_COND_TRAIN_LENGTH = 10, ///< Test train length
TRIT_COND_MAX_SPEED = 11, ///< Test train max speed
TRIT_COND_CURRENT_ORDER = 12, ///< Test train current order (station, waypoint or depot)
TRIT_COND_NEXT_ORDER = 13, ///< Test train next order (station, waypoint or depot)
/* space up to 31 */
};
@@ -251,6 +252,7 @@ static inline TraceRestrictTypePropertySet GetTraceRestrictTypeProperties(TraceR
break;
case TRIT_COND_CURRENT_ORDER:
case TRIT_COND_NEXT_ORDER:
out.value_type = TRVT_ORDER;
out.cond_type = TRCOT_BINARY;
break;