this does not work on dedicated server, added more debugging

This commit is contained in:
Eero af Heurlin 2016-07-31 18:30:48 +03:00
parent 7f9666c4a7
commit fabd3f689e

View File

@ -1,16 +1,19 @@
//diag_log format["getSideTasks called, _this: %1", _this];
diag_log format["getSideTasks called, _this: %1", _this];
private _side = _this select 0;
private _returnValue = [];
// This does not work on dedicated server for whatever reason
{
_unit = _x;
diag_log format["getSideTasks unit: %1 side %2", _unit, (side _unit)];
if (side _unit == _side) then
{
_tasks = _x call BIS_fnc_tasksUnit;
diag_log format["getSideTasks unit: %1 side %2 tasks %3", _unit, (side _unit), _tasks];
{
_returnValue pushBackUnique _x;
} foreach _tasks;
};
} foreach allUnits;
//diag_log format["getSideTasks returning: %1", _returnValue];
diag_log format["getSideTasks returning: %1", _returnValue];
_returnValue