summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorplanetmaker <planetmaker@openttd.org>2013-01-08 22:38:59 +0000
committerplanetmaker <planetmaker@openttd.org>2013-01-08 22:38:59 +0000
commit89a2ba2a6d25e605c391e7343ba66090ee9f26de (patch)
tree22f0ab8c512fc007e98f3204cae65525e4d8e8c9
parentfd8f5cff5d4d432c54e4cf7bf549a3355cf8725f (diff)
downloadopenttd-89a2ba2a6d25e605c391e7343ba66090ee9f26de.tar.xz
(svn r24899) -Fix [FS#5434]: Also the station build window needs redrawing when the station spread changes (based on patch by juanjo)
-rw-r--r--src/settings.cpp3
-rw-r--r--src/table/settings.ini4
2 files changed, 4 insertions, 3 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index f75b0c614..b82cd3f7a 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -809,9 +809,10 @@ static bool InvalidateDetailsWindow(int32 p1)
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
index d1c1a1eb4..eafbee3a1 100644
--- a/src/table/settings.ini
+++ b/src/table/settings.ini
@@ -13,7 +13,7 @@ static bool v_PositionStatusbar(int32 p1);
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 @@ max = 64
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]