mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-07-04 05:55:47 -07:00
Check if the position changed before updating it for rally points set on entities. Refs #1257.
This was SVN commit r15296.
This commit is contained in:
parent
fd615c4c54
commit
638123950c
1 changed files with 3 additions and 0 deletions
|
|
@ -36,6 +36,9 @@ RallyPoint.prototype.GetPositions = function()
|
|||
if (!targetPosition)
|
||||
continue;
|
||||
|
||||
if (this.pos[i].x == targetPosition.x AND this.pos[i].z == targetPosition.y)
|
||||
continue;
|
||||
|
||||
this.pos[i] = {"x": targetPosition.x, "z": targetPosition.y};
|
||||
var cmpRallyPointRenderer = Engine.QueryInterface(this.entity, IID_RallyPointRenderer);
|
||||
if (cmpRallyPointRenderer)
|
||||
|
|
|
|||
Loading…
Reference in a new issue