Update EPOCH_staticMove.sqf

Throw _object to EPOCH_isBuildAllowed, so it can be ignored in element counting
This commit is contained in:
He-Man 2016-12-10 20:26:32 +01:00 committed by GitHub
parent 4a6e6b006f
commit 51f4564550

View File

@ -42,7 +42,7 @@ if (EPOCH_playerEnergy <= 0) exitWith{
}; };
// Remove object if not allowed // Remove object if not allowed
if !("" call EPOCH_isBuildAllowed) exitWith{ deleteVehicle _object }; if !(_object call EPOCH_isBuildAllowed) exitWith{ deleteVehicle _object };
EPOCH_simulSwap_Lock = true; EPOCH_simulSwap_Lock = true;
_objType = typeOf _object; _objType = typeOf _object;
@ -117,7 +117,7 @@ if (_class != "") then {
_rejectMove = false; _rejectMove = false;
if ((diag_tickTime - _lastCheckTime) > 10) then { if ((diag_tickTime - _lastCheckTime) > 10) then {
_lastCheckTime = diag_tickTime; _lastCheckTime = diag_tickTime;
_rejectMove = !(_objType call EPOCH_isBuildAllowed); _rejectMove = !(_object call EPOCH_isBuildAllowed);
}; };
if (_rejectMove) exitWith{ if (_rejectMove) exitWith{
deleteVehicle EPOCH_target; deleteVehicle EPOCH_target;