aboutsummaryrefslogtreecommitdiff
path: root/src/game/HostileRefManager.cpp
diff options
context:
space:
mode:
authorSpp <none@none>2010-04-07 19:13:19 +0200
committerSpp <none@none>2010-04-07 19:13:19 +0200
commit2e127f7a30706dc1d40c65de22ff02851732da24 (patch)
tree91f7e8033e9296fdd8dbb2d5a761c9980cc36f18 /src/game/HostileRefManager.cpp
parent182e9a20b107c0d824e8a0bd1cf8f7eceb2b4ce5 (diff)
Code style (game + scripts only):
"while(" --> "while (" --HG-- branch : trunk
Diffstat (limited to 'src/game/HostileRefManager.cpp')
-rw-r--r--src/game/HostileRefManager.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/game/HostileRefManager.cpp b/src/game/HostileRefManager.cpp
index efcc544c69f..5e0ccaf15b0 100644
--- a/src/game/HostileRefManager.cpp
+++ b/src/game/HostileRefManager.cpp
@@ -40,7 +40,7 @@ void HostileRefManager::threatAssist(Unit *pVictim, float fThreat, SpellEntry co
float size = pSingleTarget ? 1.0f : getSize(); // if pSingleTarget do not divide threat
ref = getFirst();
- while(ref != NULL)
+ while (ref != NULL)
{
float threat = ThreatCalcHelper::calcThreat(pVictim, iOwner, fThreat, (pThreatSpell ? GetSpellSchoolMask(pThreatSpell) : SPELL_SCHOOL_MASK_NORMAL), pThreatSpell);
if(pVictim == getOwner())
@@ -57,7 +57,7 @@ void HostileRefManager::addTempThreat(float fThreat, bool apply)
{
HostileReference* ref = getFirst();
- while(ref != NULL)
+ while (ref != NULL)
{
if (apply)
{
@@ -94,7 +94,7 @@ void HostileRefManager::setOnlineOfflineState(bool bIsOnline)
HostileReference* ref;
ref = getFirst();
- while(ref != NULL)
+ while (ref != NULL)
{
ref->setOnlineOfflineState(bIsOnline);
ref = ref->next();
@@ -107,7 +107,7 @@ void HostileRefManager::setOnlineOfflineState(bool bIsOnline)
void HostileRefManager::updateThreatTables()
{
HostileReference* ref = getFirst();
- while(ref)
+ while (ref)
{
ref->updateOnlineStatus();
ref = ref->next();
@@ -121,7 +121,7 @@ void HostileRefManager::updateThreatTables()
void HostileRefManager::deleteReferences()
{
HostileReference* ref = getFirst();
- while(ref)
+ while (ref)
{
HostileReference* nextRef = ref->next();
ref->removeReference();
@@ -136,7 +136,7 @@ void HostileRefManager::deleteReferences()
void HostileRefManager::deleteReferencesForFaction(uint32 faction)
{
HostileReference* ref = getFirst();
- while(ref)
+ while (ref)
{
HostileReference* nextRef = ref->next();
if(ref->getSource()->getOwner()->getFactionTemplateEntry()->faction == faction)
@@ -154,7 +154,7 @@ void HostileRefManager::deleteReferencesForFaction(uint32 faction)
void HostileRefManager::deleteReference(Unit *pCreature)
{
HostileReference* ref = getFirst();
- while(ref)
+ while (ref)
{
HostileReference* nextRef = ref->next();
if(ref->getSource()->getOwner() == pCreature)
@@ -173,7 +173,7 @@ void HostileRefManager::deleteReference(Unit *pCreature)
void HostileRefManager::setOnlineOfflineState(Unit *pCreature, bool bIsOnline)
{
HostileReference* ref = getFirst();
- while(ref)
+ while (ref)
{
HostileReference* nextRef = ref->next();
if(ref->getSource()->getOwner() == pCreature)