From 2e05e5ac3979bf9a3ac4c7d54331cfd2185d8038 Mon Sep 17 00:00:00 2001 From: Thomas Kooi Date: Wed, 28 Jan 2015 18:02:49 +0100 Subject: [PATCH] Replaced isPlayer by EFUNC(common,isPlayer) --- addons/winddeflection/functions/fnc_handleFired.sqf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/winddeflection/functions/fnc_handleFired.sqf b/addons/winddeflection/functions/fnc_handleFired.sqf index 223c81f09d..8c0713c50b 100644 --- a/addons/winddeflection/functions/fnc_handleFired.sqf +++ b/addons/winddeflection/functions/fnc_handleFired.sqf @@ -18,13 +18,11 @@ #include "script_component.hpp" -if (isNil QGVAR(EnableForAI)) exitWith {false}; // means that the module has not yet initialized - private ["_unit", "_weapon", "_ammo", "_bullet", "_airFriction", "_index"]; _unit = _this select 0; if (_unit distance ACE_player > 3000) exitWith {false}; // Large enough distance to not simulate any wind deflection. -if (!GVAR(EnableForAI) && !(isPlayer _unit)) exitWith {false}; +if (!GVAR(EnableForAI) && !([_unit] call EFUNC(common,isPlayer))) exitWith {false}; _bullet = _this select 6; if (_bullet isKindOf "BulletBase") then {