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

@@ -465,6 +465,8 @@ DropDownList BaseVehicleListWindow::BuildActionDropdownList(bool show_autoreplac
}
if (this->vli.vtype == VEH_TRAIN && _settings_client.gui.show_adv_tracerestrict_features) {
list.emplace_back(new DropDownListStringItem(STR_TRACE_RESTRICT_SLOT_MANAGE, ADI_TRACERESTRICT_SLOT_MGMT, false));
}
if (_settings_client.gui.show_adv_tracerestrict_features) {
list.emplace_back(new DropDownListStringItem(STR_TRACE_RESTRICT_COUNTER_MANAGE, ADI_TRACERESTRICT_COUNTER_MGMT, false));
}
if (change_order_str != 0) {