summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-12-04 11:18:43 +0000
committerrubidium <rubidium@openttd.org>2011-12-04 11:18:43 +0000
commit5891099f24c7cb1a1d0165774ed839164f8674fd (patch)
tree108988369df86538c3520edb197406da18813fb8 /src/openttd.cpp
parent87fdac852c4d112d9726855ff98c978dd59f76fa (diff)
downloadopenttd-5891099f24c7cb1a1d0165774ed839164f8674fd.tar.xz
(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
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index 2ec5cea65..dd93ffc68 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();