# HG changeset patch # User planetmaker # Date 1357684739 0 # Node ID c2d0016cc9d616909251e00efa83efae59f864db # Parent a856a3a3bf0f006a8a6468c21a06886efe3cac72 (svn r24899) -Fix [FS#5434]: Also the station build window needs redrawing when the station spread changes (based on patch by juanjo) diff --git a/src/settings.cpp b/src/settings.cpp --- a/src/settings.cpp +++ b/src/settings.cpp @@ -809,9 +809,10 @@ return true; } -static bool InvalidateStationBuildWindow(int32 p1) +static bool StationSpreadChanged(int32 p1) { InvalidateWindowData(WC_SELECT_STATION, 0); + InvalidateWindowData(WC_BUILD_STATION, 0); return true; } diff --git a/src/table/settings.ini b/src/table/settings.ini --- a/src/table/settings.ini +++ b/src/table/settings.ini @@ -13,7 +13,7 @@ static bool PopulationInLabelActive(int32 p1); static bool RedrawScreen(int32 p1); static bool RedrawSmallmap(int32 p1); -static bool InvalidateStationBuildWindow(int32 p1); +static bool StationSpreadChanged(int32 p1); static bool InvalidateBuildIndustryWindow(int32 p1); static bool CloseSignalGUI(int32 p1); static bool InvalidateTownViewWindow(int32 p1); @@ -1010,7 +1010,7 @@ str = STR_CONFIG_SETTING_STATION_SPREAD strhelp = STR_CONFIG_SETTING_STATION_SPREAD_HELPTEXT strval = STR_CONFIG_SETTING_TILE_LENGTH -proc = InvalidateStationBuildWindow +proc = StationSpreadChanged cat = SC_BASIC [SDT_BOOL]