mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-21 04:05:32 +00: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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user