diff options
author | Darkvater <Darkvater@openttd.org> | 2006-03-17 22:47:52 +0000 |
---|---|---|
committer | Darkvater <Darkvater@openttd.org> | 2006-03-17 22:47:52 +0000 |
commit | 40e49f25d6cbd979394ce370ef75bd5b57cdafcc (patch) | |
tree | 7226266f5a44a2a0cd76f94a25f5e53633eb351c /settings.h | |
parent | 5ad5d863472acf22753dff9616b833fc7845e9b9 (diff) | |
download | openttd-40e49f25d6cbd979394ce370ef75bd5b57cdafcc.tar.xz |
(svn r3930) - [Patches] Change the GUI-patch options from indeces to string representations. Not only makes this the part more humanly readable, but saves us from rewriting the whole index when a patch is added/removed/changed
Diffstat (limited to 'settings.h')
-rw-r--r-- | settings.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/settings.h b/settings.h index 0969ffe47..1c95601da 100644 --- a/settings.h +++ b/settings.h @@ -76,7 +76,7 @@ static inline void *ini_get_variable(const SaveLoad *sld, const void *object) void IConsoleSetPatchSetting(const char *name, const char *value); void IConsoleGetPatchSetting(const char *name); -const SettingDesc *GetSettingDescription(uint index); +const SettingDesc *GetPatchFromName(const char *name, uint *i); void SetPatchValue(uint index, const Patches *object, int32 value); #endif /* SETTINGS_H */ |