Made clear traces global again, added interaction condition

This commit is contained in:
johnb432 2024-03-02 14:54:19 +01:00
parent 480d2df446
commit d6c21e0cc4
2 changed files with 5 additions and 6 deletions

View File

@ -14,6 +14,8 @@
};
#ifdef DEBUG_MODE_DRAW
[QGVAR(dev_clearTraces), LINKFUNC(dev_clearTraces)] call CBA_fnc_addEventHandler;
if (!hasInterface) exitWith {};
if (!isServer) then {
["ace_firedPlayer", LINKFUNC(dev_fired)] call CBA_fnc_addEventHandler;
@ -34,9 +36,9 @@
"Reset ACE Frag traces",
"",
{
call FUNC(dev_clearTraces);
[QGVAR(dev_clearTraces), []] call CBA_fnc_globalEvent;
},
{true}
{GVAR(dev_trackLines) isNotEqualTo createHashMap}
] call EFUNC(interact_menu,createAction);
[
_type,

View File

@ -13,10 +13,7 @@ private _category = format ["ACE %1", LLSTRING(Module_DisplayName)];
"CHECKBOX",
[LSTRING(HitSphereEnable), LSTRING(HitSphereEnable_Desc)],
[_category, LSTRING(Debug)],
false,
0,
{},
true
false
] call CBA_fnc_addSetting;
[