(svn r23422) -Fix [FS#4863] (r22797): the default palette setting wasn't applied correctly anymore as the configuration file is loaded after the first NewGRF scan
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user