(svn r24996) -Change: Apply default service interval changes to vehicles without custom interval (peter1138)

This commit is contained in:
rubidium
2013-02-14 17:08:56 +00:00
parent 8539c04192
commit afa894ba3e
4 changed files with 75 additions and 6 deletions

View File

@@ -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]