From 98ffecd417593f7329336ec44a388d28b0205fd3 Mon Sep 17 00:00:00 2001 From: vbawol Date: Tue, 26 Apr 2016 09:28:07 -0500 Subject: [PATCH] re-revert logic here --- Sources/epoch_code/compile/EPOCH_unitSpawn.sqf | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/epoch_code/compile/EPOCH_unitSpawn.sqf b/Sources/epoch_code/compile/EPOCH_unitSpawn.sqf index a323e17e..d81cd04b 100644 --- a/Sources/epoch_code/compile/EPOCH_unitSpawn.sqf +++ b/Sources/epoch_code/compile/EPOCH_unitSpawn.sqf @@ -39,14 +39,14 @@ _jammers = []; _config = 'CfgEpochClient' call EPOCH_returnConfig; _jammerRange = getNumber(_config >> "buildingJammerRange"); _jammers = nearestObjects[_targetPos, ["PlotPole_EPOCH"], _jammerRange]; -if(count _jammers > 0 && !(_unitClass in _nonJammer))exitWith{ -if(_doVariable)then{["Not allowed near a base - Please respawn !", 5] call Epoch_dynamicText;}; +if(count _jammers > 0 && (_unitClass in _nonJammer))exitWith{ + if(_doVariable)then{["Not allowed near a base - Please respawn !", 5] call Epoch_dynamicText;}; }; _restricted = []; _restricted = nearestObjects [_targetPos, ["ProtectionZone_Invisible_F"], _nonTraderAIRange]; -if(count _restricted > 0 && !(_unitClass in _nonTrader))exitWith{ -if(_doVariable)then{["Not allowed near a trader - Please respawn !", 5] call Epoch_dynamicText;}; +if(count _restricted > 0 && (_unitClass in _nonTrader))exitWith{ + if(_doVariable)then{["Not allowed near a trader - Please respawn !", 5] call Epoch_dynamicText;}; }; _disableAI = { @@ -124,4 +124,4 @@ _trgt setVariable ["EPOCH_antagBomb", _bomb, true]; if !(isNull _unit) then { // send to server [_unit] remoteExec ["EPOCH_localCleanup",2]; -}; \ No newline at end of file +};