Debug updated to be easier to control

This commit is contained in:
lambdatiger 2024-01-16 15:41:10 -06:00
parent 6dacd38101
commit 9178611a16
2 changed files with 7 additions and 3 deletions

View File

@ -14,6 +14,7 @@
*
* Public: No
*/
if (!GVAR(debugOptions)) exitWith {};
{
_y params ["_posArray", "_color"];

View File

@ -15,7 +15,8 @@
*
* Public: No
*/
params ["_lastUnit", "_currentUnit"];
TRACE_1("switchUnit",_this);
params ["_currentUnit", "_lastUnit"];
if (isNull _currentUnit || {_lastUnit isEqualTo _currentUnit}) exitWith {};
if (!local _currentUnit) exitWith {
@ -34,7 +35,9 @@ if (_actionID > -1 && {!isNull _lastUnit}) then {
_actionID = _currentUnit addAction [
"Reset Lines",
FUNC(dev_clearTraces),
{
remoteExecCall [QFUNC(dev_clearTraces), 2];
},
nil,
1.5,
true,
@ -44,4 +47,4 @@ _actionID = _currentUnit addAction [
8
];
missionNamespace getVariable [QGVAR(dev_clearTraceAction), _actionID];
missionNamespace setVariable [QGVAR(dev_clearTraceAction), _actionID];