1
0
forked from 0ad/0ad

Fix missed target -> position.

Introduced in fc04e849ca.
Reported by: @wowgetoffyourcellphone.
This was SVN commit r27333.
This commit is contained in:
Freagarach 2023-01-02 06:58:39 +00:00
parent e4ded1f971
commit 48ac0fecde

View File

@ -115,7 +115,7 @@ var g_UnitActions =
"formation": g_AutoFormation.getNull()
});
DrawTargetMarker(target);
DrawTargetMarker(position);
Engine.GuiInterfaceCall("PlaySound", {
"name": "order_attack_move",
@ -1893,12 +1893,12 @@ function isUndeletable(entState)
return false;
}
function DrawTargetMarker(target)
function DrawTargetMarker(position)
{
Engine.GuiInterfaceCall("AddTargetMarker", {
"template": g_TargetMarker.move,
"x": target.x,
"z": target.z
"x": position.x,
"z": position.z
});
}