-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jam - fix p90 jam and add test script (#1091)
- Loading branch information
1 parent
fc2fe68
commit 8c7653d
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#define DEBUG_MODE_FULL | ||
#include "script_component.hpp" | ||
// ---------------------------------------------------------------------------- | ||
// execVM "x\cba\addons\jam\test.sqf" | ||
|
||
LOG("=== Testing Jam ==="); | ||
|
||
private _wellsChecked = []; | ||
{ | ||
private _wpnCfg = _x; | ||
private _xWellArray = getArray (_wpnCfg >> "magazineWell"); | ||
{ | ||
if ((_wellsChecked pushBackUnique _x) > -1) then { | ||
if (isNull (configFile >> "CfgMagazineWells" >> _x)) then { | ||
diag_log text format ["ERROR: Well [%1] not valid, used in [%2]", _x,configName _wpnCfg]; | ||
}; | ||
}; | ||
} forEach _xWellArray; | ||
} forEach (configProperties [configFile >> "CfgWeapons", "(isClass _x) && {2 == getNumber (_x >> 'scope')}"]); | ||
|
||
nil; |