Fix #14701: Company colour remap for sprites in badge filter dropdowns. (#14732)

This commit is contained in:
Rito12
2025-11-14 00:24:46 +01:00
committed by dP
parent 7575c0beb0
commit f6bb898df2
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -1785,7 +1785,8 @@ struct BuildVehicleWindow : Window {
default:
if (IsInsideMM(widget, this->badge_filters.first, this->badge_filters.second)) {
ShowDropDownList(this, this->GetWidget<NWidgetBadgeFilter>(widget)->GetDropDownList(), -1, widget, 0, false);
PaletteID palette = SPR_2CCMAP_BASE + Company::Get(_local_company)->GetCompanyRecolourOffset(LS_DEFAULT);
ShowDropDownList(this, this->GetWidget<NWidgetBadgeFilter>(widget)->GetDropDownList(palette), -1, widget, 0, false);
}
break;
}