diff --git a/addons/xeh/init_pre.sqf b/addons/xeh/init_pre.sqf index d155e3038..a85576b2b 100644 --- a/addons/xeh/init_pre.sqf +++ b/addons/xeh/init_pre.sqf @@ -77,7 +77,7 @@ if ( isNumber(_cfgRespawn) ) then { _respawn = !(getNumber(_cfgRespawn) in [0, 1, 4, 5]); }; if ( isText(_cfgRespawn) ) then { - _respawn = !(getText(_cfgRespawn) in ["none", "bird", "group", "side"]); + _respawn = !((toLower getText(_cfgRespawn)) in ["none", "bird", "group", "side"]); }; SLX_XEH_objects = []; // Temporary array, to track InitPosts at mission initialization @@ -201,9 +201,6 @@ SLX_XEH_OTHER_EVENTS_PLAYERS = []; } } forEach SLX_XEH_OTHER_EVENTS; -SLX_XEH_CONFIG_FILES = [configFile, campaignConfigFile, missionConfigFile]; -SLX_XEH_CONFIG_FILES_VARIABLE = [campaignConfigFile, missionConfigFile]; - SLX_XEH_DEF_CLASSES = [SLX_XEH_STR, "All"]; // XEH for non XEH supported addons diff --git a/addons/xeh/script_component.hpp b/addons/xeh/script_component.hpp index 9545c2de3..02e75ba69 100644 --- a/addons/xeh/script_component.hpp +++ b/addons/xeh/script_component.hpp @@ -27,3 +27,5 @@ #include "\x\cba\addons\main\script_macros.hpp" +#define SLX_XEH_CONFIG_FILES [configFile, campaignConfigFile, missionConfigFile] +#define SLX_XEH_CONFIG_FILES_VARIABLE [campaignConfigFile, missionConfigFile]