From 6251248a091197b62369fc87b9acc4ae24eb0f89 Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Mon, 18 May 2015 13:11:08 +0100 Subject: [PATCH] Fixed conditions --- addons/zeus/functions/fnc_moduleKnockout.sqf | 4 ++-- addons/zeus/functions/fnc_moduleSurrender.sqf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/addons/zeus/functions/fnc_moduleKnockout.sqf b/addons/zeus/functions/fnc_moduleKnockout.sqf index 2c26c79c73..5f416cb771 100644 --- a/addons/zeus/functions/fnc_moduleKnockout.sqf +++ b/addons/zeus/functions/fnc_moduleKnockout.sqf @@ -28,10 +28,10 @@ if (isNil QEFUNC(medical,setUnconscious)) then { if (isNull _unit) then { ["Place on a unit"] call DEFUNC(common,displayTextStructured); } else { - if (!_unit isKindOf "CAManBase") then { + if !(_unit isKindOf "CAManBase") then { ["Unit must be infantry"] call DEFUNC(common,displayTextStructured); } else { - if (!alive _unit) then { + if !(alive _unit) then { ["Unit must be alive"] call DEFUNC(common,displayTextStructured); } else { _conscious = GETVAR(_unit,ACE_isUnconscious,false); diff --git a/addons/zeus/functions/fnc_moduleSurrender.sqf b/addons/zeus/functions/fnc_moduleSurrender.sqf index cfcfecb675..fea0ed6e07 100644 --- a/addons/zeus/functions/fnc_moduleSurrender.sqf +++ b/addons/zeus/functions/fnc_moduleSurrender.sqf @@ -28,10 +28,10 @@ if (isNil QEFUNC(captives,setSurrendered)) then { if (isNull _unit) then { ["Place on a unit"] call DEFUNC(common,displayTextStructured); } else { - if (!_unit isKindOf "CAManBase") then { + if !(_unit isKindOf "CAManBase") then { ["Unit must be infantry"] call DEFUNC(common,displayTextStructured); } else { - if (!alive _unit) then { + if !(alive _unit) then { ["Unit must be alive"] call DEFUNC(common,displayTextStructured); } else { _surrendering = GETVAR(_unit,EGVAR(captives,isSurrendering),false);