diff options
author | megamage <none@none> | 2009-07-23 09:17:35 +0800 |
---|---|---|
committer | megamage <none@none> | 2009-07-23 09:17:35 +0800 |
commit | e79656b75a3a4272f25457b11856f8ca9df29ba4 (patch) | |
tree | 3906184930266ad656b17d936cefaffe7269c213 /src/game/Unit.cpp | |
parent | a522e3bff4e421fcac980b67bbdefb3d1a2084f3 (diff) |
*Use virtual function for GetFollowAngle
--HG--
branch : trunk
Diffstat (limited to 'src/game/Unit.cpp')
-rw-r--r-- | src/game/Unit.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp index 5f651fcd015..308d510e5ae 100644 --- a/src/game/Unit.cpp +++ b/src/game/Unit.cpp @@ -14906,15 +14906,6 @@ void Unit::SetFlying(bool apply) } } -float Unit::GetFollowAngle() const -{ - if (GetTypeId()!=TYPEID_UNIT) - return PET_FOLLOW_ANGLE; - if (!((Creature*)this)->HasSummonMask(SUMMON_MASK_MINION)) - return PET_FOLLOW_ANGLE; - return ((Minion*)this)->GetFollowAngle(); -} - void Unit::NearTeleportTo( float x, float y, float z, float orientation, bool casting /*= false*/ ) { if(GetTypeId() == TYPEID_PLAYER) |