From f1a3d46c642d302494eed416d0c191adb197d922 Mon Sep 17 00:00:00 2001 From: He-Man Date: Mon, 10 Apr 2017 00:10:07 +0200 Subject: [PATCH] Removed redundant checks --- Sources/epoch_code/compile/servicepoint/EPOCH_SP_Check.sqf | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Sources/epoch_code/compile/servicepoint/EPOCH_SP_Check.sqf b/Sources/epoch_code/compile/servicepoint/EPOCH_SP_Check.sqf index 982a4982..f1132472 100644 --- a/Sources/epoch_code/compile/servicepoint/EPOCH_SP_Check.sqf +++ b/Sources/epoch_code/compile/servicepoint/EPOCH_SP_Check.sqf @@ -28,11 +28,7 @@ _servicepointDist = ["CfgServicePoint", "ServicePointDist", 40] call EPOCH_fnc _ServicePointClasses = ["CfgServicePoint", "ServicePointClasses", []] call EPOCH_fnc_returnConfigEntryV2; if (_servicepoints isequalto [] && _ServicePointClasses isequalto []) exitwith {false}; -if (_vehicle == player) exitwith {false}; -if !(local _vehicle) exitwith {false}; -if (speed _vehicle > 2 || speed _vehicle < -2) exitwith {false}; -if (((getpos _vehicle) select 2) > 1) exitwith {false}; -if (!(_vehicle iskindof 'ship') && (((getposasl _vehicle) select 2) < 1)) exitwith {false}; + _inSP = false; if (({player distance _x < _servicepointDist} count _servicepoints > 0)) then { _inSP = true;