diff options
author | rubidium42 <rubidium@openttd.org> | 2021-06-21 18:31:56 +0200 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-06-26 20:28:34 +0200 |
commit | f029fd0f3bb8253a7cb9bfa0f9182619835b4512 (patch) | |
tree | 31b5930953df4f0f8ebf674a0b804f856e8ce4da /src/table | |
parent | cdf9caf8eae152d81ef17ed6c7f56e52d07dbe3f (diff) | |
download | openttd-f029fd0f3bb8253a7cb9bfa0f9182619835b4512.tar.xz |
Codechange: remove overloading on UpdateServiceInterval
One UpdateServiceInterval has two parameters to update the service interval for a vehicle type, the other for all vehicle types at once. Rename the latter to help with function resolution for the introduction of variants.
Diffstat (limited to 'src/table')
-rw-r--r-- | src/table/settings/company_settings.ini | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/table/settings/company_settings.ini b/src/table/settings/company_settings.ini index 469e1acea..71f99d5a2 100644 --- a/src/table/settings/company_settings.ini +++ b/src/table/settings/company_settings.ini @@ -8,7 +8,7 @@ ; company changes them, it changes for all players. [pre-amble] -static void UpdateServiceInterval(int32 new_value); +static void UpdateAllServiceInterval(int32 new_value); static bool CanUpdateServiceInterval(VehicleType type, int32 &new_value); static void UpdateServiceInterval(VehicleType type, int32 new_value); @@ -77,7 +77,7 @@ var = vehicle.servint_ispercent def = false str = STR_CONFIG_SETTING_SERVINT_ISPERCENT strhelp = STR_CONFIG_SETTING_SERVINT_ISPERCENT_HELPTEXT -post_cb = UpdateServiceInterval +post_cb = UpdateAllServiceInterval [SDT_VAR] var = vehicle.servint_trains |