mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 01:37:00 +00:00
[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:
parent
6d49f2bbee
commit
01b6c6b8f4
4 changed files with 7 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue