diff options
author | Patric Stout <truebrain@openttd.org> | 2021-05-29 23:27:01 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-29 23:27:01 +0200 |
commit | d70fb74ac669bdb64b5f594894629ec91801fd76 (patch) | |
tree | 344150f3a69cd97cf774eec16eed291ed4e2467c /src/settings_func.h | |
parent | 5799402f7a4872d03809838dd7fa01db42bbd282 (diff) | |
download | openttd-d70fb74ac669bdb64b5f594894629ec91801fd76.tar.xz |
Codechange: use setting name instead of index for CmdChange(Company)Setting (#9306)
This is mostly done as there are now constraints on settings.ini you might not
expected. For example, conditional settings always have to come last, as otherwise
they would influence the index.
Diffstat (limited to 'src/settings_func.h')
-rw-r--r-- | src/settings_func.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/settings_func.h b/src/settings_func.h index 4a55821cf..d1ecdbac1 100644 --- a/src/settings_func.h +++ b/src/settings_func.h @@ -32,7 +32,6 @@ struct GRFConfig *LoadGRFPresetFromConfig(const char *config_name); void SaveGRFPresetToConfig(const char *config_name, struct GRFConfig *config); void DeleteGRFPresetFromConfig(const char *config_name); -uint GetCompanySettingIndex(const char *name); void SetDefaultCompanySettings(CompanyID cid); void SyncCompanySettings(); |