Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
Fusselwurm committed Sep 30, 2021
1 parent 89f076a commit 79457bc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion addons/houseLightSwitch/functions/fnc_condition.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions addons/houseLightSwitch/functions/fnc_ensureFuseboxHelper.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 79457bc

Please sign in to comment.