From 60ade8deaa20e0368c515300b15641ee3ed8eefb Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Fri, 15 May 2015 00:09:03 +0100 Subject: [PATCH] Providing correct parameters --- addons/zeus/functions/fnc_bi_moduleCurator.sqf | 2 +- addons/zeus/functions/fnc_moduleCuratorDelay.sqf | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/addons/zeus/functions/fnc_bi_moduleCurator.sqf b/addons/zeus/functions/fnc_bi_moduleCurator.sqf index 6011480da7..6b66dbcc33 100644 --- a/addons/zeus/functions/fnc_bi_moduleCurator.sqf +++ b/addons/zeus/functions/fnc_bi_moduleCurator.sqf @@ -198,7 +198,7 @@ if (_activated) then { _addons call bis_fnc_activateaddons; // Added by ACE_zeus to delay ascension messages and bird code (so that settings can be changed) - [{_this spawn DFUNC(moduleCuratorDelay);},_this] call EFUNC(common,execNextFrame); + [{_this spawn DFUNC(moduleCuratorDelay);},[_logic,_player]] call EFUNC(common,execNextFrame); }; //--- Player diff --git a/addons/zeus/functions/fnc_moduleCuratorDelay.sqf b/addons/zeus/functions/fnc_moduleCuratorDelay.sqf index 2ed604f017..4e9f8cd769 100644 --- a/addons/zeus/functions/fnc_moduleCuratorDelay.sqf +++ b/addons/zeus/functions/fnc_moduleCuratorDelay.sqf @@ -5,8 +5,7 @@ * * Arguments: * 0: The module logic - * 1: units - * 2: activated + * 1: Zeus player * * Return Value: * None @@ -17,6 +16,11 @@ #include "script_component.hpp" if (isServer) then { + private ["_logic","_player","_birdType","_bird"]; + + _logic = _this select 0; + _player = _this select 1; + // Extracted from moduleCurator to toggle ascension messages if (GVAR(zeusAscension)) then { //--- Sent notification to all assigned players