diff --git a/src/newgrf_config.h b/src/newgrf_config.h index 94b9a25cea..4e2057fca2 100644 --- a/src/newgrf_config.h +++ b/src/newgrf_config.h @@ -240,5 +240,6 @@ GRFTextWrapper *FindUnknownGRFName(uint32 grfid, uint8 *md5sum, bool create); #endif /* ENABLE_NETWORK */ void UpdateNewGRFScanStatus(uint num, const char *name); +bool UpdateNewGRFConfigPalette(int32 p1 = 0); #endif /* NEWGRF_CONFIG_H */ diff --git a/src/openttd.cpp b/src/openttd.cpp index 2ec5cea656..dd93ffc68c 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -398,6 +398,9 @@ struct AfterNewGRFScan : NewGRFScanCallback { uint last_newgrf_count = _settings_client.gui.last_newgrf_count; LoadFromConfig(); _settings_client.gui.last_newgrf_count = last_newgrf_count; + /* Since the default for the palette might have changed due to + * reading the configuration file, recalculate that now. */ + UpdateNewGRFConfigPalette(); AI::Uninitialize(true); CheckConfig(); diff --git a/src/table/settings.ini b/src/table/settings.ini index 965eaeb17e..40052828be 100644 --- a/src/table/settings.ini +++ b/src/table/settings.ini @@ -40,7 +40,6 @@ static bool InvalidateIndustryViewWindow(int32 p1); static bool InvalidateAISettingsWindow(int32 p1); static bool RedrawTownAuthority(int32 p1); static bool InvalidateCompanyInfrastructureWindow(int32 p1); -extern bool UpdateNewGRFConfigPalette(int32 p1); static bool ZoomMinMaxChanged(int32 p1); #ifdef ENABLE_NETWORK