From 43efc21f270c2e0fe56a27a7a3accb6a39265d3c Mon Sep 17 00:00:00 2001 From: Glowbal Date: Fri, 3 Apr 2015 21:03:22 +0200 Subject: [PATCH] Only display the activity log in the activity list. --- .../fnc_displayPatientInformation.sqf | 33 +++++++++---------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/addons/medical/functions/fnc_displayPatientInformation.sqf b/addons/medical/functions/fnc_displayPatientInformation.sqf index 9d49cce011..b155a7b1ef 100644 --- a/addons/medical/functions/fnc_displayPatientInformation.sqf +++ b/addons/medical/functions/fnc_displayPatientInformation.sqf @@ -135,26 +135,23 @@ if (_show) then { lbClear _logCtrl; private ["_logs", "_log", "_message", "_moment", "_arguments", "_lbCtrl"]; - _logs = _target getvariable [QGVAR(allLogs), []]; + _logs = _target getvariable [QGVAR(logFile_Activity), []]; { - _log = _target getvariable [_x, []]; - { - // [_message,_moment,_type, _arguments] - _message = _x select 0; - _moment = _x select 1; - _arguments = _x select 3; - if (isLocalized _message) then { - _message = localize _message; - }; + // [_message,_moment,_type, _arguments] + _message = _x select 0; + _moment = _x select 1; + _arguments = _x select 3; + if (isLocalized _message) then { + _message = localize _message; + }; - { - if (typeName _x == "STRING" && {isLocalized _x}) then { - _arguments set [_foreachIndex, localize _x]; - }; - }foreach _arguments; - _message = format([_message] + _arguments); - _logCtrl lbAdd format["%1 %2", _moment, _message]; - }foreach _log; + { + if (typeName _x == "STRING" && {isLocalized _x}) then { + _arguments set [_foreachIndex, localize _x]; + }; + }foreach _arguments; + _message = format([_message] + _arguments); + _logCtrl lbAdd format["%1 %2", _moment, _message]; }foreach _logs; _triageStatus = [_target] call FUNC(getTriageStatus);