#2672 - Use ACE_gameTime for triage card

This commit is contained in:
PabstMirror 2015-10-03 12:28:54 -05:00
parent ea01db4030
commit b0b755720c
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ _amount = 1;
private "_info"; private "_info";
_info = _log select _foreachIndex; _info = _log select _foreachIndex;
_info set [1,(_info select 1) + 1]; _info set [1,(_info select 1) + 1];
_info set [2, ACE_time]; _info set [2, ACE_gameTime];
_log set [_foreachIndex, _info]; _log set [_foreachIndex, _info];
_amount = (_info select 1); _amount = (_info select 1);
@ -38,7 +38,7 @@ _amount = 1;
} foreach _log; } foreach _log;
if (!_inList) then { if (!_inList) then {
_log pushback [_newItem, 1, ACE_time]; _log pushback [_newItem, 1, ACE_gameTime];
}; };
_unit setvariable [QGVAR(triageCard), _log, true]; _unit setvariable [QGVAR(triageCard), _log, true];
["Medical_onItemAddedToTriageCard", [_unit, _newItem, _amount]] call EFUNC(common,localEvent); ["Medical_onItemAddedToTriageCard", [_unit, _newItem, _amount]] call EFUNC(common,localEvent);

View File

@ -75,7 +75,7 @@ if (_name isEqualTo "triage") exitwith {
_message = localize _message; _message = localize _message;
}; };
}; };
_triageCardTexts pushback format["%1x - %2 (%3m)", _amount, _message, round((ACE_time - _time) / 60)]; _triageCardTexts pushback format["%1x - %2 (%3m)", _amount, _message, round((ACE_gameTime - _time) / 60)];
nil; nil;
} count _log; } count _log;