Fixes #420 fixed out-of-range group member's position update, which broken after 7014f421c8

--HG--
branch : trunk
This commit is contained in:
silver1ce
2010-01-20 15:05:58 +02:00
parent 6e76e67253
commit 7ce1c094c0
3 changed files with 10 additions and 14 deletions
+1
View File
@@ -1426,6 +1426,7 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
void NearTeleportTo(float x, float y, float z, float orientation, bool casting = false);
virtual bool SetPosition(float x, float y, float z, float ang, bool teleport = false);
// returns true if unit's position really changed
bool SetPosition(const Position &pos, bool teleport = false) { return SetPosition(pos.GetPositionX(), pos.GetPositionY(), pos.GetPositionZ(), pos.GetOrientation(), teleport); }
void KnockbackFrom(float x, float y, float speedXY, float speedZ);