From 51f45645501866b8d11de31acb5dedc1200201c7 Mon Sep 17 00:00:00 2001 From: He-Man Date: Sat, 10 Dec 2016 20:26:32 +0100 Subject: [PATCH] Update EPOCH_staticMove.sqf Throw _object to EPOCH_isBuildAllowed, so it can be ignored in element counting --- Sources/epoch_code/compile/building/EPOCH_staticMove.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sources/epoch_code/compile/building/EPOCH_staticMove.sqf b/Sources/epoch_code/compile/building/EPOCH_staticMove.sqf index 83a748d5..df40071e 100644 --- a/Sources/epoch_code/compile/building/EPOCH_staticMove.sqf +++ b/Sources/epoch_code/compile/building/EPOCH_staticMove.sqf @@ -42,7 +42,7 @@ if (EPOCH_playerEnergy <= 0) exitWith{ }; // Remove object if not allowed -if !("" call EPOCH_isBuildAllowed) exitWith{ deleteVehicle _object }; +if !(_object call EPOCH_isBuildAllowed) exitWith{ deleteVehicle _object }; EPOCH_simulSwap_Lock = true; _objType = typeOf _object; @@ -117,7 +117,7 @@ if (_class != "") then { _rejectMove = false; if ((diag_tickTime - _lastCheckTime) > 10) then { _lastCheckTime = diag_tickTime; - _rejectMove = !(_objType call EPOCH_isBuildAllowed); + _rejectMove = !(_object call EPOCH_isBuildAllowed); }; if (_rejectMove) exitWith{ deleteVehicle EPOCH_target;