Fixed typo in initialization file preventing SargeAi from loading as expected.
This commit is contained in:
Teh Dango 2018-04-12 13:37:24 -04:00
parent c6a6bc0567
commit fc67c3b4fd

View File

@ -22,7 +22,7 @@ private ["_SAR_supportedMaps","_config","_modConfigs","_modPatches","_modName","
scopeName "Main"; scopeName "Main";
_SAR_version = "2.4.5"; _SAR_version = "2.4.6";
diag_log format ["Sarge's AI System: Welcome to Sarge AI!"]; diag_log format ["Sarge's AI System: Welcome to Sarge AI!"];
diag_log format ["Sarge's AI System: Now initializing Sarge AI version %1 for %2",_SAR_version,worldName]; diag_log format ["Sarge's AI System: Now initializing Sarge AI version %1 for %2",_SAR_version,worldName];
@ -34,13 +34,13 @@ _SAR_supportedMods = ["dsr_code","epoch","exile","breakingpoint"];
_modName = ""; _modName = "";
{ {
_modConfigs = toLower (isClass (configFile >> "CfgMods" >> _x)); _modConfigs = isClass (configFile >> "CfgMods" >> _x);
if (_modConfigs) then { if (_modConfigs) then {
_modName = _x; _modName = toLower (_x);
}; };
_modPatches = isClass (configFile >> "CfgPatches" >> _x); _modPatches = isClass (configFile >> "CfgPatches" >> _x);
if (_modPatches) then { if (_modPatches) then {
_modName = _x; _modName = toLower (_x);
}; };
if (_modName == "dsr_code") then {_modName = "desolation"}; if (_modName == "dsr_code") then {_modName = "desolation"};
} forEach _SAR_supportedMods; } forEach _SAR_supportedMods;