summaryrefslogtreecommitdiff
path: root/src/table
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2013-02-14 17:08:56 +0000
committerrubidium <rubidium@openttd.org>2013-02-14 17:08:56 +0000
commitef8d491d8f86287249d5d2fa2c955e7c900d5570 (patch)
tree1d96135245bd8eef7c079d99e201de7469412a99 /src/table
parent369a6f9d1b6856eee47df08b1aae8049eaf4b2fa (diff)
downloadopenttd-ef8d491d8f86287249d5d2fa2c955e7c900d5570.tar.xz
(svn r24996) -Change: Apply default service interval changes to vehicles without custom interval (peter1138)
Diffstat (limited to 'src/table')
-rw-r--r--src/table/company_settings.ini12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/table/company_settings.ini b/src/table/company_settings.ini
index 932cd6b58..71b95cc39 100644
--- a/src/table/company_settings.ini
+++ b/src/table/company_settings.ini
@@ -9,6 +9,10 @@
[pre-amble]
static bool CheckInterval(int32 p1);
static bool InvalidateDetailsWindow(int32 p1);
+static bool UpdateIntervalTrains(int32 p1);
+static bool UpdateIntervalRoadVeh(int32 p1);
+static bool UpdateIntervalShips(int32 p1);
+static bool UpdateIntervalAircraft(int32 p1);
static const SettingDesc _company_settings[] = {
[post-amble]
@@ -88,7 +92,7 @@ max = 800
str = STR_CONFIG_SETTING_SERVINT_TRAINS
strhelp = STR_CONFIG_SETTING_SERVINT_TRAINS_HELPTEXT
strval = STR_CONFIG_SETTING_SERVINT_VALUE
-proc = InvalidateDetailsWindow
+proc = UpdateIntervalTrains
[SDT_VAR]
base = CompanySettings
@@ -101,7 +105,7 @@ max = 800
str = STR_CONFIG_SETTING_SERVINT_ROAD_VEHICLES
strhelp = STR_CONFIG_SETTING_SERVINT_ROAD_VEHICLES_HELPTEXT
strval = STR_CONFIG_SETTING_SERVINT_VALUE
-proc = InvalidateDetailsWindow
+proc = UpdateIntervalRoadVeh
[SDT_VAR]
base = CompanySettings
@@ -114,7 +118,7 @@ max = 800
str = STR_CONFIG_SETTING_SERVINT_SHIPS
strhelp = STR_CONFIG_SETTING_SERVINT_SHIPS_HELPTEXT
strval = STR_CONFIG_SETTING_SERVINT_VALUE
-proc = InvalidateDetailsWindow
+proc = UpdateIntervalShips
[SDT_VAR]
base = CompanySettings
@@ -127,7 +131,7 @@ max = 800
str = STR_CONFIG_SETTING_SERVINT_AIRCRAFT
strhelp = STR_CONFIG_SETTING_SERVINT_AIRCRAFT_HELPTEXT
strval = STR_CONFIG_SETTING_SERVINT_VALUE
-proc = InvalidateDetailsWindow
+proc = UpdateIntervalAircraft
[SDT_END]