aboutsummaryrefslogtreecommitdiff
path: root/src/game/HostileRefManager.cpp
diff options
context:
space:
mode:
authorSpp <none@none>2010-04-07 19:14:10 +0200
committerSpp <none@none>2010-04-07 19:14:10 +0200
commitd19e12708001fbef2308be0e8cb5375a2ac7af48 (patch)
tree09fc8f67a6197802e0512950f0b0a3438a9834e8 /src/game/HostileRefManager.cpp
parent2e127f7a30706dc1d40c65de22ff02851732da24 (diff)
Code style (game + scripts only):
"if(" --> "if (" --HG-- branch : trunk
Diffstat (limited to 'src/game/HostileRefManager.cpp')
-rw-r--r--src/game/HostileRefManager.cpp8
1 files changed, 4 insertions, 4 deletions
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;