From 783c2aa8ce4ba6c6c79c5a683403ee7abe17c77d Mon Sep 17 00:00:00 2001 From: lambdatiger Date: Thu, 18 Jul 2024 19:36:49 -0500 Subject: [PATCH] fixed debug def names --- addons/frag/functions/fnc_doSpall.sqf | 10 ++++++---- addons/frag/functions/fnc_frago.sqf | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/addons/frag/functions/fnc_doSpall.sqf b/addons/frag/functions/fnc_doSpall.sqf index 7892fde850..e5d6e8f107 100644 --- a/addons/frag/functions/fnc_doSpall.sqf +++ b/addons/frag/functions/fnc_doSpall.sqf @@ -18,10 +18,12 @@ * * Public: No */ -params ["_objectHit", "_roundType", "_round", "_oldPos", "_oldVelocity",]; +params ["_objectHit", "_roundType", "_round", "_oldPos", "_oldVelocity"]; TRACE_1("",_objectHit); -if ((isNil "_objectHit") || {isNull _objectHit}) exitWith {WARNING_1("Problem with hitPart data - bad object [%1]",_objectHit);}; +if ((isNil "_objectHit") || {isNull _objectHit}) exitWith { + WARNING_1("Problem with hitPart data - bad object [%1]",_objectHit); +}; private _caliber = getNumber (configFile >> "CfgAmmo" >> _roundType >> "caliber"); private _explosive = getNumber (configFile >> "CfgAmmo" >> _roundType >> "explosive"); @@ -88,7 +90,7 @@ for "_i" from 1 to _spallCount do { _fragment setPosASL _spallPos; _fragment setVelocity _spallFragVect; - #ifdef DRAW_FRAG_INFO + #ifdef DEBUG_MODE_DRAW [_fragment, "orange", true] call FUNC(dev_trackObj); #endif }; @@ -110,7 +112,7 @@ for "_i" from 1 to _spallCount do { _fragment setPosASL _spallPos; _fragment setVelocity _spallFragVect; - #ifdef DRAW_FRAG_INFO + #ifdef DEBUG_MODE_DRAW [_fragment, "orange", true] call FUNC(dev_trackObj); #endif }; \ No newline at end of file diff --git a/addons/frag/functions/fnc_frago.sqf b/addons/frag/functions/fnc_frago.sqf index b479610f8a..682266b7af 100644 --- a/addons/frag/functions/fnc_frago.sqf +++ b/addons/frag/functions/fnc_frago.sqf @@ -112,7 +112,7 @@ if (_targets isNotEqualTo []) then { _fragObj setVectorDir _vec; _fragObj setVelocity _vel; _fragObj setShotParents _shotParents; - #ifdef DRAW_FRAG_INFO + #ifdef DEBUG_MODE_DRAW [ACE_player, _fragObj, [1,0,0,1]] call FUNC(dev_addTrack); #endif INC(_fragCount); @@ -146,7 +146,7 @@ if (_targets isNotEqualTo []) then { _fragObj setVelocity _vel; _fragObj setShotParents _shotParents; - #ifdef DRAW_FRAG_INFO + #ifdef DEBUG_MODE_DRAW [ACE_player, _fragObj, [1,0.5,0,1]] call FUNC(dev_addTrack); #endif INC(_fragCount);