From 644c13c971d1fc55756f5472580796bef75af1b7 Mon Sep 17 00:00:00 2001 From: jokoho48 Date: Mon, 24 Aug 2015 13:43:11 +0200 Subject: [PATCH] fix Typo Remove macro GETVAR --- addons/dragging/functions/fnc_handleScrollWheel.sqf | 4 ++-- addons/dragging/functions/fnc_startCarry.sqf | 2 +- addons/dragging/functions/fnc_startDrag.sqf | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/dragging/functions/fnc_handleScrollWheel.sqf b/addons/dragging/functions/fnc_handleScrollWheel.sqf index ac3941a79e..cd613316ec 100644 --- a/addons/dragging/functions/fnc_handleScrollWheel.sqf +++ b/addons/dragging/functions/fnc_handleScrollWheel.sqf @@ -13,12 +13,12 @@ */ #include "script_component.hpp" -private ["_unit", "_carriedItem", "_position", "_maxHeight", ] +private ["_unit", "_carriedItem", "_position", "_maxHeight"]; params ["_scrollAmount"]; // requires modifier key to be hold down -if (GETMVAR(ACE_Modifier,0) == 0) exitWith {false}; +if (missionNamespace getVariable ["ACE_Modifier", 0] == 0) exitWith {false}; _unit = ACE_player; diff --git a/addons/dragging/functions/fnc_startCarry.sqf b/addons/dragging/functions/fnc_startCarry.sqf index c905bad8f3..a95a8f9fb4 100644 --- a/addons/dragging/functions/fnc_startCarry.sqf +++ b/addons/dragging/functions/fnc_startCarry.sqf @@ -21,7 +21,7 @@ params ["_unit", "_target"]; // check weight _weight = [_target] call FUNC(getWeight); -if (_weight > GETMVAR(ACE_maxWeightCarry,1E11)) exitWith { +if (_weight > missionNamespace getVariable ["ACE_maxWeightCarry", 1E11]) exitWith { [localize LSTRING(UnableToDrag)] call EFUNC(common,displayTextStructured); }; diff --git a/addons/dragging/functions/fnc_startDrag.sqf b/addons/dragging/functions/fnc_startDrag.sqf index 43a8a14695..d3e55bdaea 100644 --- a/addons/dragging/functions/fnc_startDrag.sqf +++ b/addons/dragging/functions/fnc_startDrag.sqf @@ -18,7 +18,7 @@ params ["_unit", "_target"]; private "_weight"; _weight = [_target] call FUNC(getWeight); -if (_weight > GETMVAR(ACE_maxWeightDrag,1E11)) exitWith { +if (_weight > missionNamespace getVariable ["ACE_maxWeightDrag", 1E11]) exitWith { [localize LSTRING(UnableToDrag)] call EFUNC(common,displayTextStructured); };