From 13b7e7ae720b3db1bcf083b4fe7b07d839d0fa7c Mon Sep 17 00:00:00 2001 From: Michael Braun Date: Tue, 4 Aug 2015 01:20:41 +0200 Subject: [PATCH] Updated parameterization in Zeus module. --- addons/zeus/functions/fnc_handleZeusUnitAssigned.sqf | 6 +++--- addons/zeus/functions/fnc_moduleCaptive.sqf | 5 +++-- addons/zeus/functions/fnc_moduleSurrender.sqf | 5 +++-- addons/zeus/functions/fnc_moduleUnconscious.sqf | 5 +++-- addons/zeus/functions/fnc_moduleZeusSettings.sqf | 5 +---- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/addons/zeus/functions/fnc_handleZeusUnitAssigned.sqf b/addons/zeus/functions/fnc_handleZeusUnitAssigned.sqf index e5433bad27..2ee78992f2 100644 --- a/addons/zeus/functions/fnc_handleZeusUnitAssigned.sqf +++ b/addons/zeus/functions/fnc_handleZeusUnitAssigned.sqf @@ -19,11 +19,11 @@ #include "script_component.hpp" -private ["_logic","_removeAddons","_numCfgs","_cfg","_requiredAddon"]; +private ["_removeAddons", "_numCfgs", "_cfg", "_requiredAddon"]; if !(isClass (configFile >> "ACE_Curator")) exitWith { ERROR("The ACE_Curator class does not exist") }; -_logic = _this select 0; +params ["_logic"] _removeAddons = []; _numCfgs = count (configFile >> "ACE_Curator"); @@ -36,7 +36,7 @@ for "_n" from 0 to (_numCfgs - 1) do { if !(isClass (configFile >> "CfgPatches" >> _x)) exitWith { _removeAddons pushBack (configName _cfg); }; - } forEach _requiredAddon; + } forEach _requierdAddon; }; if (isText _cfg) then { diff --git a/addons/zeus/functions/fnc_moduleCaptive.sqf b/addons/zeus/functions/fnc_moduleCaptive.sqf index 43879a2a59..94e421e8d9 100644 --- a/addons/zeus/functions/fnc_moduleCaptive.sqf +++ b/addons/zeus/functions/fnc_moduleCaptive.sqf @@ -15,8 +15,9 @@ #include "script_component.hpp" -PARAMS_3(_logic,_units,_activated); -private ["_mouseOver","_unit","_captive"]; +private ["_mouseOver", "_unit", "_captive"]; + +params ["_logic", "_units", "_activated"]; if !(_activated && local _logic) exitWith {}; diff --git a/addons/zeus/functions/fnc_moduleSurrender.sqf b/addons/zeus/functions/fnc_moduleSurrender.sqf index 30ec8d8d35..ecce6b9b1d 100644 --- a/addons/zeus/functions/fnc_moduleSurrender.sqf +++ b/addons/zeus/functions/fnc_moduleSurrender.sqf @@ -15,8 +15,9 @@ #include "script_component.hpp" -PARAMS_3(_logic,_units,_activated); -private ["_mouseOver","_unit","_surrendering"]; +private ["_mouseOver", "_unit", "_surrendering"]; + +params ["_mouseOver", "_units", "_surrendering"]; if !(_activated && local _logic) exitWith {}; diff --git a/addons/zeus/functions/fnc_moduleUnconscious.sqf b/addons/zeus/functions/fnc_moduleUnconscious.sqf index 401fef2aa4..eeff54a0f8 100644 --- a/addons/zeus/functions/fnc_moduleUnconscious.sqf +++ b/addons/zeus/functions/fnc_moduleUnconscious.sqf @@ -15,8 +15,9 @@ #include "script_component.hpp" -PARAMS_3(_logic,_units,_activated); -private ["_mouseOver","_unit","_conscious"]; +private ["_mouseOver", "_unit", "_conscious"]; + +params ["_logic", "_units", "_activated"]; if !(_activated && local _logic) exitWith {}; diff --git a/addons/zeus/functions/fnc_moduleZeusSettings.sqf b/addons/zeus/functions/fnc_moduleZeusSettings.sqf index 3a582f7196..0b9c0f8dd8 100644 --- a/addons/zeus/functions/fnc_moduleZeusSettings.sqf +++ b/addons/zeus/functions/fnc_moduleZeusSettings.sqf @@ -15,10 +15,7 @@ #include "script_component.hpp" -private ["_logic", "_units", "_activated"]; -_logic = _this select 0; -_units = _this select 1; -_activated = _this select 2; +params ["_logic", "_units", "_activated"]; if !(_activated) exitWith {};