diff options
author | glx <glx@openttd.org> | 2008-05-14 23:02:05 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2008-05-14 23:02:05 +0000 |
commit | bdd75a65f8cc94644381fe5c21a6c23a9da7c797 (patch) | |
tree | 52bf98065763457b0dc7b23afec1f16df27c68b7 /src/openttd.cpp | |
parent | 7728ef7204c6896352d82b327615ddb5d3fa28d7 (diff) | |
download | openttd-bdd75a65f8cc94644381fe5c21a6c23a9da7c797.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.cpp | 2 |
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(); } |