From 53b8649d85f1328a0f84199865141d26c88dc127 Mon Sep 17 00:00:00 2001
From: BaerMitUmlaut <BaerMitUmlaut@users.noreply.github.com>
Date: Tue, 24 Oct 2017 15:38:47 +0200
Subject: [PATCH] Fix carrying on water (AGL->ASL) (#5659)

---
 addons/dragging/functions/fnc_handleScrollWheel.sqf | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/addons/dragging/functions/fnc_handleScrollWheel.sqf b/addons/dragging/functions/fnc_handleScrollWheel.sqf
index f82478d531..22a19627c0 100644
--- a/addons/dragging/functions/fnc_handleScrollWheel.sqf
+++ b/addons/dragging/functions/fnc_handleScrollWheel.sqf
@@ -30,8 +30,8 @@ private _carriedItem = _unit getVariable [QGVAR(carriedObject), objNull];
 //disabled for persons
 if (_carriedItem isKindOf "CAManBase") exitWith {false};
 
-private _position = getPosATL _carriedItem;
-private _maxHeight = (_unit modelToWorldVisual [0,0,0]) select 2;
+private _position = getPosASL _carriedItem;
+private _maxHeight = (_unit modelToWorldVisualWorld [0, 0, 0]) select 2;
 
 _position set [2, ((_position select 2) + _scrollAmount min (_maxHeight + 1.5)) max _maxHeight];
 
@@ -39,7 +39,7 @@ _position set [2, ((_position select 2) + _scrollAmount min (_maxHeight + 1.5))
 detach _carriedItem;
 
 // Uses this method of selecting position because setPosATL did not have immediate effect
-private _positionChange = _position vectorDiff (getPosATL _carriedItem);
+private _positionChange = _position vectorDiff (getPosASL _carriedItem);
 private _selectionPosition = _unit worldToModel (ASLtoAGL getPosWorld _carriedItem);
 _selectionPosition = _selectionPosition vectorAdd _positionChange;
 _carriedItem attachTo [_unit, _selectionPosition];