Added missing variables to private array.

This commit is contained in:
Thomas Kooi 2015-01-19 00:59:19 +01:00
parent e4b1265a84
commit 29c4676b20
2 changed files with 8 additions and 7 deletions

View File

@ -10,21 +10,24 @@
#include "script_component.hpp"
private ["_unit","_caller","_type","_activity","_log"];
private ["_unit","_type","_activity","_log", "_lastNumber", "_message"];
_unit = _this select 0;
_type = _this select 1;
_message = _this select 2;
_lastNumber = date select 4;
systemChat format["Added event to quick view: %1", _this];
if (!local _unit) exitwith {
[_this, QUOTE(FUNC(addToQuickViewLog)), _unit] call EFUNC(common,execRemoteFnc);
};
_lastNumber = date select 4;
_moment = format["%1:%2",date select 3, _lastNumber];
if (_lastNumber < 10) then {
_moment = format["%1:0%2",date select 3, _lastNumber];
};
_log = [_unit,QGVAR(quickViewLog)] call EFUNC(common,getDefinedVariable);
if (count _log >= 8) then {
_newLog = [];

View File

@ -10,13 +10,11 @@
#include "script_component.hpp"
private ["_unit", "_set"];
_unit = _this select 0;
_set = if (count _this > 1) then {_this select 1} else {true};
systemchat format["fn_treatmentMutex %1", _this];
diag_log format["fn_treatmentMutex %1", _this];
if (_set) exitwith {
_unit setvariable [QGVAR(PerformingTreatmentMutex), time, true];
};