*Use virtual function for GetFollowAngle
--HG-- branch : trunk
This commit is contained in:
1 parent
a522e3bff4
commit
e79656b75a
3 files changed
+2
-11
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user