mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Added missing variables to private array.
This commit is contained in:
parent
e4b1265a84
commit
29c4676b20
@ -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 = [];
|
||||
|
@ -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];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user