Remove macro GETVAR
This commit is contained in:
jokoho48 2015-08-24 13:43:11 +02:00
parent 79cf8dd98e
commit 644c13c971
3 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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);
};

View File

@ -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);
};