summaryrefslogtreecommitdiff
path: root/settings.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-05-22 09:59:09 +0000
committerrubidium <rubidium@openttd.org>2006-05-22 09:59:09 +0000
commita6fc0e521d2fae329a7fc018a030744ca2160116 (patch)
treeb788c7edb4172ca828ca014a8c90ff94c47974a9 /settings.h
parentd9e968e759b6b904f289d7f51aa60a511c220fa6 (diff)
downloadopenttd-a6fc0e521d2fae329a7fc018a030744ca2160116.tar.xz
(svn r4944) Codechange: make _patches_newgame available via settings.h and remove instances of extern Patches _patches_newgame in .c files
Diffstat (limited to 'settings.h')
-rw-r--r--settings.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/settings.h b/settings.h
index d8d83c6e2..f837ee835 100644
--- a/settings.h
+++ b/settings.h
@@ -74,6 +74,9 @@ 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;
+
void IConsoleSetPatchSetting(const char *name, const char *value);
void IConsoleGetPatchSetting(const char *name);
const SettingDesc *GetPatchFromName(const char *name, uint *i);