Fix: Autoreplace rail/road list only listed buildable types. (#13887)

Instead list all possible types which includes hidden types compatible with buildable types.
This commit is contained in:
Peter Nelson
2025-03-25 08:22:30 +00:00
committed by GitHub
parent 1fb4c44bc7
commit adb20f99ea
5 changed files with 10 additions and 8 deletions

View File

@@ -1792,6 +1792,7 @@ struct CompanyInfrastructureWindow : Window
/* Get the date introduced railtypes as well. */
this->railtypes = AddDateIntroducedRailTypes(this->railtypes, CalendarTime::MAX_DATE);
this->railtypes &= ~_railtypes_hidden_mask;
/* Find the used roadtypes. */
for (const Engine *e : Engine::IterateType(VEH_ROAD)) {