From 4707e0f858d52bd1bca787c2e701d30133d4c4e3 Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Tue, 8 Jul 2014 21:21:44 -0400 Subject: [PATCH] Inline a few functions that should be --- zone/mob.cpp | 16 ---------------- zone/mob.h | 4 ++-- 2 files changed, 2 insertions(+), 18 deletions(-) diff --git a/zone/mob.cpp b/zone/mob.cpp index f9b275631..340dfdfea 100644 --- a/zone/mob.cpp +++ b/zone/mob.cpp @@ -2753,22 +2753,6 @@ void Mob::Warp( float x, float y, float z ) SendPosition(); } -bool Mob::DivineAura() const -{ - if (spellbonuses.DivineAura) - return true; - - return false; -} - -bool Mob::Sanctuary() const -{ - if (spellbonuses.Sanctuary) - return true; - - return false; -} - int16 Mob::GetResist(uint8 type) const { if (IsNPC()) diff --git a/zone/mob.h b/zone/mob.h index fcb0ece3d..4cd6d5f49 100644 --- a/zone/mob.h +++ b/zone/mob.h @@ -818,8 +818,8 @@ public: inline int& GetNextIncHPEvent() { return nextinchpevent; } void SetNextIncHPEvent( int inchpevent ); - bool DivineAura() const; - bool Sanctuary() const; + inline bool DivineAura() const { return spellbonuses.DivineAura; } + inline bool Sanctuary() const { return spellbonuses.Sanctuary; } bool HasNPCSpecialAtk(const char* parse); int GetSpecialAbility(int ability);