(svn r15410) -Cleanup: get rid of most of the references to the 'patches' except where it's used for backward compatability.

This commit is contained in:
rubidium
2009-02-08 12:25:13 +00:00
parent 9eee0a6a81
commit 283b3d16ab
83 changed files with 9864 additions and 9863 deletions

View File

@@ -8,7 +8,7 @@
/* static */ bool AIGameSettings::IsValid(const char *setting)
{
uint i;
const SettingDesc *sd = GetPatchFromName(setting, &i);
const SettingDesc *sd = GetSettingFromName(setting, &i);
return sd != NULL && sd->desc.cmd != SDT_STRING;
}
@@ -17,7 +17,7 @@
if (!IsValid(setting)) return -1;
uint i;
const SettingDesc *sd = GetPatchFromName(setting, &i);
const SettingDesc *sd = GetSettingFromName(setting, &i);
void *ptr = GetVariableAddress(&_settings_game, &sd->save);
if (sd->desc.cmd == SDT_BOOLX) return *(bool*)ptr;