aboutsummaryrefslogtreecommitdiff
path: root/src/game/Unit.h
diff options
context:
space:
mode:
authorsilver1ce <none@none>2010-01-20 15:05:58 +0200
committersilver1ce <none@none>2010-01-20 15:05:58 +0200
commit7ce1c094c0af82ff74e2a32d2e911dd81e730d8e (patch)
treea1df3ed4d8c59c3326a1722f865ea92a82d49676 /src/game/Unit.h
parent6e76e6725353638a79c6f55dcb236e35707ec3f3 (diff)
Fixes #420 fixed out-of-range group member's position update, which broken after 7014f421c8
--HG-- branch : trunk
Diffstat (limited to 'src/game/Unit.h')
-rw-r--r--src/game/Unit.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/Unit.h b/src/game/Unit.h
index f9c0116b256..b1581c6a329 100644
--- a/src/game/Unit.h
+++ b/src/game/Unit.h
@@ -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);