From 79457bc80a1e46d98ac5d7dd6203ec83ac539276 Mon Sep 17 00:00:00 2001 From: Moritz Schmidt Date: Thu, 30 Sep 2021 15:56:20 +0200 Subject: [PATCH] clean up --- addons/houseLightSwitch/functions/fnc_condition.sqf | 1 - addons/houseLightSwitch/functions/fnc_ensureFuseboxHelper.sqf | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/houseLightSwitch/functions/fnc_condition.sqf b/addons/houseLightSwitch/functions/fnc_condition.sqf index c43ce15..c9f0c7a 100644 --- a/addons/houseLightSwitch/functions/fnc_condition.sqf +++ b/addons/houseLightSwitch/functions/fnc_condition.sqf @@ -4,7 +4,6 @@ private _cursorTarget = cursorTarget; private _isUnderSomething = lineIntersectsObjs [getposASL ace_player, getposASL ace_player vectorAdd [0, 0, 20]] isNotEqualTo []; private _pointsAtHouse = _cursorTarget isKindOf "House" || {_cursorTarget isKindOf "Building"}; -// private _houseCenterIsClose = (cursorTarget distanceSqr ace_player) < 100; // 10² if (_pointsAtHouse && {_isUnderSomething}) then { GVAR(house) = _cursorTarget; diff --git a/addons/houseLightSwitch/functions/fnc_ensureFuseboxHelper.sqf b/addons/houseLightSwitch/functions/fnc_ensureFuseboxHelper.sqf index dfe7f4c..46c1a86 100644 --- a/addons/houseLightSwitch/functions/fnc_ensureFuseboxHelper.sqf +++ b/addons/houseLightSwitch/functions/fnc_ensureFuseboxHelper.sqf @@ -7,11 +7,11 @@ assert(!(isNull _building)); private _helper = _building getVariable [QGVAR(fuseboxHelper), objNull]; if (_helper isNotEqualTo objNull) exitWith { - INFO("helper exists already!"); + TRACE_1("helper for %1 exists already!", _building); }; private _helperPos = _building modelToWorld [0, 0, 0]; -INFO_2("creating helper for building %1 at %2", _building, _helperPos); +TRACE_2("creating helper for building %1 at %2", _building, _helperPos); // NOTE: cannot use createSimpleObject, as these cannot hold ACE actions // NOTE: createVehicleLocal will avoid collisions! hence setpos later