From 6a3cba83bab77ade2522cd01ff3e89cbe73a3193 Mon Sep 17 00:00:00 2001 From: PabstMirror Date: Tue, 15 Oct 2024 00:07:13 -0500 Subject: [PATCH] General - Small cleanups (#565) * General - Small cleanups * Update .hemtt/project.toml --- addons/assignGear/functions/fnc_addSupplyBoxActions.sqf | 1 - addons/markers/vehicleTags/init.sqf | 1 - addons/missionTesting/functions/fnc_updateNotesFlag.sqf | 2 +- addons/radios/functions/fnc_acreSideControlSideChange.sqf | 5 +---- addons/setVehicleAmmo/XEH_preInit.sqf | 2 +- addons/spectate/functions/fnc_ui_handleDraw3D.sqf | 2 -- 6 files changed, 3 insertions(+), 10 deletions(-) diff --git a/addons/assignGear/functions/fnc_addSupplyBoxActions.sqf b/addons/assignGear/functions/fnc_addSupplyBoxActions.sqf index 356ae018f..33cb0d44e 100644 --- a/addons/assignGear/functions/fnc_addSupplyBoxActions.sqf +++ b/addons/assignGear/functions/fnc_addSupplyBoxActions.sqf @@ -37,7 +37,6 @@ private _action = [ ] call ACEFUNC(interact_menu,createAction); [_theBox, 0, ["ACE_MainActions"], _action] call ACEFUNC(interact_menu,addActionToObject); -//IGNORE_PRIVATE_WARNING ["_player", "_target"]; _action = [ "markBoxSmoke", "Smoke", diff --git a/addons/markers/vehicleTags/init.sqf b/addons/markers/vehicleTags/init.sqf index 7d95ff65a..92c091f49 100644 --- a/addons/markers/vehicleTags/init.sqf +++ b/addons/markers/vehicleTags/init.sqf @@ -25,7 +25,6 @@ GVAR(tags) = [ private _fnc_statement = {}; private _fnc_condition = { - //IGNORE_PRIVATE_WARNING ["_player", "_target"]; (missionNamespace getVariable [QEGVAR(safeStart,startTime_PV), -1] != -1) // safe start active && {(rankId _player) >= 1} && { diff --git a/addons/missionTesting/functions/fnc_updateNotesFlag.sqf b/addons/missionTesting/functions/fnc_updateNotesFlag.sqf index 40deed2e1..a86ea2984 100644 --- a/addons/missionTesting/functions/fnc_updateNotesFlag.sqf +++ b/addons/missionTesting/functions/fnc_updateNotesFlag.sqf @@ -19,7 +19,7 @@ private _idc = ctrlIDC _control; private _str = str _idc; private _array = _str splitString ""; private _subsection = parseNumber (_array select 3); -TRACE_1("_subSectionArray Before",_subSectionArray); +TRACE_2("_subSectionArray Before",_array,_subsection); private _masterChecklist = nil; private _text = ctrlText _control; private _missionMaker = getMissionConfigValue ["author","????"]; diff --git a/addons/radios/functions/fnc_acreSideControlSideChange.sqf b/addons/radios/functions/fnc_acreSideControlSideChange.sqf index 024be8d2b..0daa1e6d8 100644 --- a/addons/radios/functions/fnc_acreSideControlSideChange.sqf +++ b/addons/radios/functions/fnc_acreSideControlSideChange.sqf @@ -14,10 +14,7 @@ private _ctrlChannels = _ctrlGroup controlsGroupCtrl RADIO_CHANNEL_IDC; private _ctrlSharedMR = _ctrlGroup controlsGroupCtrl CFG_S_SHARED_MR; private _ctrlSharedLR = _ctrlGroup controlsGroupCtrl CFG_S_SHARED_LR; -TRACE_8("Shared settings",GVAR(addCommonChannelWestMR),GVAR(addCommonChannelWestLR),\ -GVAR(addCommonChannelEastMR),GVAR(addCommonChannelEastLR),\ -GVAR(addCommonChannelIndyMR),GVAR(addCommonChannelIndyLR),\ -GVAR(addCommonChannelCivMR),GVAR(addCommonChannelCivLR)); +TRACE_8("Shared settings",GVAR(addCommonChannelWestMR),GVAR(addCommonChannelWestLR),GVAR(addCommonChannelEastMR),GVAR(addCommonChannelEastLR),GVAR(addCommonChannelIndyMR),GVAR(addCommonChannelIndyLR),GVAR(addCommonChannelCivMR),GVAR(addCommonChannelCivLR)); private _side = switch (_index) do { case (0): { diff --git a/addons/setVehicleAmmo/XEH_preInit.sqf b/addons/setVehicleAmmo/XEH_preInit.sqf index ccb96438a..0be6d051f 100644 --- a/addons/setVehicleAmmo/XEH_preInit.sqf +++ b/addons/setVehicleAmmo/XEH_preInit.sqf @@ -25,7 +25,7 @@ if (isServer) then { if ((!alive _vehicle) || {!local _vehicle}) exitWith {}; private _customization = GVAR(vehicleCustomization) getOrDefault [typeOf _vehicle, []]; private _ret = [_vehicle, _customization select 0, _customization select 1] call bis_fnc_initVehicle; - TRACE_3("applied",_x,_ret,_customization); + TRACE_3("applied",typeOf _vehicle,_ret,_customization); }, false, nil, true] call CBA_fnc_addClassEventHandler; // no inheritance, apply retro } forEach GVAR(vehicleCustomization); }, [], 5] call CBA_fnc_waitAndExecute; diff --git a/addons/spectate/functions/fnc_ui_handleDraw3D.sqf b/addons/spectate/functions/fnc_ui_handleDraw3D.sqf index acd0c2291..c7bf756a0 100644 --- a/addons/spectate/functions/fnc_ui_handleDraw3D.sqf +++ b/addons/spectate/functions/fnc_ui_handleDraw3D.sqf @@ -131,8 +131,6 @@ if !(GVAR(mapOpen) || GVAR(fullMapOpen)) then { TRACE_1("grenade",_x); _x params ["_projectile", "_icon", "_color"]; if !(isNull _projectile) then { - private _grenadeVelocityMagnitude = vectorMagnitude velocity _projectile; - // Draw grenade drawIcon3D [_icon, _color, (getPosVisual _projectile) vectorAdd [0,0,0.25], 0.4, 0.4, 0, "", 0, 0.05, "TahomaB"];