*Use virtual function for GetFollowAngle

--HG--
branch : trunk
This commit is contained in:
megamage committed 2009-07-23 09:17:35 +08:00
1 parent a522e3bff4
commit e79656b75a
3 files changed
+2 -11

No files matched your search

-9
View File
@@ -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)