[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

@ -2170,7 +2170,8 @@ bool Creature::HasSpellCooldown(uint32 spell_id) const
uint8 Creature::getRace() const
{
return Unit::getRace() ? Unit::getRace() : GetCreatureModelRace(GetNativeDisplayId());
uint8 race = Unit::getRace();
return race ? race : GetCreatureModelRace(GetNativeDisplayId());
}
bool Creature::IsInEvadeMode() const