Change: Hide all variants from UI when (display) parent is hidden. (#10708)

This commit is contained in:
PeterN
2023-04-25 20:34:10 +01:00
committed by GitHub
parent 5794590b36
commit 1697dff744
4 changed files with 41 additions and 5 deletions

View File

@@ -148,7 +148,7 @@ class ReplaceVehicleWindow : public Window {
GUIEngineList list;
for (const Engine *e : Engine::IterateType(type)) {
if (!draw_left && !this->show_hidden_engines && e->IsHidden(_local_company)) continue;
if (!draw_left && !this->show_hidden_engines && e->IsVariantHidden(_local_company)) continue;
EngineID eid = e->index;
switch (type) {
case VEH_TRAIN: