diff options
author | Darkvater <darkvater@openttd.org> | 2006-11-21 20:20:30 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-11-21 20:20:30 +0000 |
commit | 2a91c8d723ae2e9a71d964b35977799f3134fe84 (patch) | |
tree | 3b7a4d2f64eb443f7020e29b653b70318daf4aba /settings.h | |
parent | 4113d151cd9bca733171a7b07d99c7abe8e6914c (diff) | |
download | openttd-2a91c8d723ae2e9a71d964b35977799f3134fe84.tar.xz |
(svn r7231) -Codechange: rename ini_get_variable to GetVariableAddress for use both in settings.c
and saveload.c
Diffstat (limited to 'settings.h')
-rw-r--r-- | settings.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/settings.h b/settings.h index 1eb26e2a0..0ab3ecef3 100644 --- a/settings.h +++ b/settings.h @@ -66,15 +66,6 @@ typedef enum { IGT_LIST = 1, ///< a list of values, seperated by \n and terminated by the next group block } IniGroupType; -/** Get the address of the variable. Which one to pick depends on the object - * pointer. If it is NULL we are dealing with global variables so the address - * is taken. If non-null only the offset is stored in the union and we need - * to add this to the address of the object */ -static inline void *ini_get_variable(const SaveLoad *sld, const void *object) -{ - return (object == NULL) ? sld->address : (byte*)object + (ptrdiff_t)sld->address; -} - /** The patch values that are used for new games and/or modified in config file */ extern Patches _patches_newgame; |