From 471d33ae324fb194730a9d629e27100816325722 Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Mon, 1 Jul 2024 19:15:37 +0200 Subject: [PATCH] More cleanup --- addons/dragging/XEH_postInit.sqf | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/addons/dragging/XEH_postInit.sqf b/addons/dragging/XEH_postInit.sqf index a3bc903629..b0468d4650 100644 --- a/addons/dragging/XEH_postInit.sqf +++ b/addons/dragging/XEH_postInit.sqf @@ -3,17 +3,12 @@ [QGVAR(moveCorpse), { params ["_corpse", "_dir", "_posATL"]; - _posATL params ["_xPos", "_yPos", "_zPos"]; if (isNull _corpse) exitWith {}; - private _currentPos = getPosATL _corpse; - // Check if the corpse is already close to the target // If so, don't teleport - if !( - _currentPos distance _posATL > 0.25 - ) then { + if ((getPosATL _corpse) distance _posATL > 0.25) then { // Set direction before position _corpse setDir _dir;