summaryrefslogtreecommitdiff
path: root/src/openttd.cpp
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-05-14 23:02:05 +0000
committerglx <glx@openttd.org>2008-05-14 23:02:05 +0000
commit1c77928886c150124b71558a09b2ab152f45d7c5 (patch)
tree52bf98065763457b0dc7b23afec1f16df27c68b7 /src/openttd.cpp
parent3a88f38b6577545a5e4668137de4b31808924faa (diff)
downloadopenttd-1c77928886c150124b71558a09b2ab152f45d7c5.tar.xz
(svn r13096) -Codechange: resize SelectPlayerLiveryWindow dynamically on _loaded_newgrf_feature.has_2CC changes
Diffstat (limited to 'src/openttd.cpp')
-rw-r--r--src/openttd.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/openttd.cpp b/src/openttd.cpp
index e79b166fc..fcdffcb1a 100644
--- a/src/openttd.cpp
+++ b/src/openttd.cpp
@@ -2544,6 +2544,8 @@ void ReloadNewGRFData()
AfterLoadStations();
/* Check and update house and town values */
UpdateHousesAndTowns();
+ /* Update livery selection windows */
+ for (PlayerID i = PLAYER_FIRST; i < MAX_PLAYERS; i++) InvalidateWindowData(WC_PLAYER_COLOR, i, _loaded_newgrf_features.has_2CC);
/* redraw the whole screen */
MarkWholeScreenDirty();
}