Skip to content

Commit

Permalink
Common - Skip static config test when ace loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror committed Feb 29, 2024
1 parent 3136ba8 commit cb999dc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions addons/common/test_config.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ TEST_TRUE(_result isEqualTo [ARR_2("Single","FullAuto")],_funcName);
_result = ["arifle_MX_GL_F"] call CBA_fnc_getWeaponModes;
TEST_TRUE(_result isEqualTo [ARR_2("Single","FullAuto")],_funcName);

_result = ["arifle_MX_F", true] call CBA_fnc_getWeaponModes;
TEST_TRUE(_result isEqualTo [ARR_5("Single","FullAuto","fullauto_medium","single_medium_optics1","single_far_optics2")],_funcName);
if (!isClass (configFile >> "CfgPatches" >> "ace_ai")) then { // ace modifies config so don't bother when it's loaded
_result = ["arifle_MX_F", true] call CBA_fnc_getWeaponModes;
TEST_TRUE(_result isEqualTo [ARR_5("Single","FullAuto","fullauto_medium","single_medium_optics1","single_far_optics2")],_funcName);
};

_result = ["FirstAidKit", true] call CBA_fnc_getWeaponModes;
TEST_TRUE(_result isEqualTo ["FirstAidKit"],_funcName);
Expand Down

0 comments on commit cb999dc

Please sign in to comment.