Merge branch 'master' into careminster

avinationmerge
Melanie 2013-04-02 23:53:23 +01:00
commit 4bc5a7aa19
1 changed files with 6 additions and 5 deletions

View File

@ -4349,13 +4349,14 @@ namespace OpenSim.Region.Framework.Scenes
} }
} }
public void UpdateGroupPosition(Vector3 pos) public void UpdateGroupPosition(Vector3 newPos)
{ {
if ((pos.X != GroupPosition.X) || Vector3 oldPos = GroupPosition;
(pos.Y != GroupPosition.Y) ||
(pos.Z != GroupPosition.Z)) if ((newPos.X != oldPos.X) ||
(newPos.Y != oldPos.Y) ||
(newPos.Z != oldPos.Z))
{ {
Vector3 newPos = new Vector3(pos.X, pos.Y, pos.Z);
GroupPosition = newPos; GroupPosition = newPos;
ScheduleTerseUpdate(); ScheduleTerseUpdate();
} }