(svn r13096) -Codechange: resize SelectPlayerLiveryWindow dynamically on _loaded_newgrf_feature.has_2CC changes

This commit is contained in:
glx
2008-05-14 23:02:05 +00:00
parent 7728ef7204
commit bdd75a65f8
2 changed files with 23 additions and 32 deletions

View File

@@ -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();
}