From d19e12708001fbef2308be0e8cb5375a2ac7af48 Mon Sep 17 00:00:00 2001 From: Spp Date: Wed, 7 Apr 2010 19:14:10 +0200 Subject: Code style (game + scripts only): "if(" --> "if (" --HG-- branch : trunk --- src/game/HostileRefManager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/game/HostileRefManager.cpp') diff --git a/src/game/HostileRefManager.cpp b/src/game/HostileRefManager.cpp index 5e0ccaf15b0..64fc19c78d4 100644 --- a/src/game/HostileRefManager.cpp +++ b/src/game/HostileRefManager.cpp @@ -43,7 +43,7 @@ void HostileRefManager::threatAssist(Unit *pVictim, float fThreat, SpellEntry co while (ref != NULL) { float threat = ThreatCalcHelper::calcThreat(pVictim, iOwner, fThreat, (pThreatSpell ? GetSpellSchoolMask(pThreatSpell) : SPELL_SCHOOL_MASK_NORMAL), pThreatSpell); - if(pVictim == getOwner()) + if (pVictim == getOwner()) ref->addThreat(threat / size); // It is faster to modify the threat durectly if possible else ref->getSource()->addThreat(pVictim, threat / size); @@ -139,7 +139,7 @@ void HostileRefManager::deleteReferencesForFaction(uint32 faction) while (ref) { HostileReference* nextRef = ref->next(); - if(ref->getSource()->getOwner()->getFactionTemplateEntry()->faction == faction) + if (ref->getSource()->getOwner()->getFactionTemplateEntry()->faction == faction) { ref->removeReference(); delete ref; @@ -157,7 +157,7 @@ void HostileRefManager::deleteReference(Unit *pCreature) while (ref) { HostileReference* nextRef = ref->next(); - if(ref->getSource()->getOwner() == pCreature) + if (ref->getSource()->getOwner() == pCreature) { ref->removeReference(); delete ref; @@ -176,7 +176,7 @@ void HostileRefManager::setOnlineOfflineState(Unit *pCreature, bool bIsOnline) while (ref) { HostileReference* nextRef = ref->next(); - if(ref->getSource()->getOwner() == pCreature) + if (ref->getSource()->getOwner() == pCreature) { ref->setOnlineOfflineState(bIsOnline); break; -- cgit v1.2.3