mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
fix broken time format for rallypoints, fix #2662
This commit is contained in:
parent
1fdedb5785
commit
7f1f56c121
@ -41,12 +41,18 @@ _position set [2, 0];
|
||||
[localize LSTRING(Deploy)] call EFUNC(common,displayTextStructured);
|
||||
|
||||
[{
|
||||
params ["_rallypoint", "_unit", "_position"];
|
||||
params ["_rallypoint", "_unit", "_position", "_minutes"];
|
||||
|
||||
_rallypoint setPosATL _position;
|
||||
_unit reveal _rallypoint;
|
||||
|
||||
_rallypoint setVariable [QGVAR(markerDate), format ["%1:%2", date select 3, date select 4], true];
|
||||
// fix leading zero
|
||||
_minutes = date select 4;
|
||||
if (_minutes < 10) then {
|
||||
_minutes = format ["0%1", _minutes];
|
||||
};
|
||||
|
||||
_rallypoint setVariable [QGVAR(markerDate), format ["%1:%2", date select 3, _minutes], true];
|
||||
|
||||
["rallypointMoved", [_rallypoint, _side, _position]] call EFUNC(common,globalEvent);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user