Allow non-train vehicles to test counter values in conditional orders

This commit is contained in:
Jonathan G Rennison
2022-01-18 18:17:28 +00:00
parent 7d86909a90
commit ce61f6439c
3 changed files with 3 additions and 2 deletions

View File

@@ -2477,7 +2477,7 @@ public:
DropDownList list;
for (uint i = 0; i < lengthof(_order_conditional_variable); i++) {
if (this->vehicle->type != VEH_TRAIN && (_order_conditional_variable[i] == OCV_TRAIN_IN_SLOT || _order_conditional_variable[i] == OCV_SLOT_OCCUPANCY ||
_order_conditional_variable[i] == OCV_FREE_PLATFORMS || _order_conditional_variable[i] == OCV_COUNTER_VALUE)) {
_order_conditional_variable[i] == OCV_FREE_PLATFORMS)) {
continue;
}
if (ocv != _order_conditional_variable[i]) {