[12019] Various changes

* Add some const correctness
* Remove unused Unit::isHover() function
* Help compiler optimize code from last commit (thx to vladimir)
This commit is contained in:
Schmoozerd 2012-06-25 14:41:31 +02:00
parent 6d49f2bbee
commit 01b6c6b8f4
4 changed files with 7 additions and 8 deletions

View file

@ -8625,7 +8625,7 @@ void Unit::TauntFadeOut(Unit *taunter)
//======================================================================
bool Unit::IsSecondChoiceTarget(Unit* pTarget, bool checkThreatArea)
bool Unit::IsSecondChoiceTarget(Unit* pTarget, bool checkThreatArea) const
{
MANGOS_ASSERT(pTarget && GetTypeId() == TYPEID_UNIT);