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:
leper
2014-06-05 10:27:40 +00:00
parent fd615c4c54
commit 638123950c
@@ -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)