(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:
@@ -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;
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
*
|
||||
* @note The names of the setting for AIGameSettings::IsValid and
|
||||
* AIGameSettings::GetValue are the same ones as those that are shown by
|
||||
* the list_patches command in the in-game console. Settings that are
|
||||
* the list_settings command in the in-game console. Settings that are
|
||||
* string based are NOT supported and AIGAmeSettings::IsValid will return
|
||||
* false for them. These settings will not be supported either because
|
||||
* they have no relevance for the AI (default client names, server IPs,
|
||||
|
||||
@@ -89,7 +89,7 @@ public:
|
||||
* @param industry_type The type of the industry.
|
||||
* @pre IsValidIndustryType(industry_type).
|
||||
* @return True if you can prospect this type of industry.
|
||||
* @note If the patch setting "Manual primary industry construction method" is set
|
||||
* @note If the setting "Manual primary industry construction method" is set
|
||||
* to either "None" or "as other industries" this function always returns false.
|
||||
*/
|
||||
static bool CanProspectIndustry(IndustryType industry_type);
|
||||
|
||||
Reference in New Issue
Block a user