aboutsummaryrefslogtreecommitdiff
path: root/src/game/Map.h
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/Map.h
parent2e127f7a30706dc1d40c65de22ff02851732da24 (diff)
Code style (game + scripts only):
"if(" --> "if (" --HG-- branch : trunk
Diffstat (limited to 'src/game/Map.h')
-rw-r--r--src/game/Map.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/game/Map.h b/src/game/Map.h
index 682e05533f9..f89a685fd2b 100644
--- a/src/game/Map.h
+++ b/src/game/Map.h
@@ -248,8 +248,8 @@ class Map : public GridRefManager<NGridType>, public Trinity::ObjectLevelLockabl
// currently unused for normal maps
bool CanUnload(uint32 diff)
{
- if(!m_unloadTimer) return false;
- if(m_unloadTimer <= diff) return true;
+ if (!m_unloadTimer) return false;
+ if (m_unloadTimer <= diff) return true;
m_unloadTimer -= diff;
return false;
}
@@ -368,7 +368,7 @@ class Map : public GridRefManager<NGridType>, public Trinity::ObjectLevelLockabl
bool IsBattleGroundOrArena() const { return i_mapEntry && i_mapEntry->IsBattleGroundOrArena(); }
bool GetEntrancePos(int32 &mapid, float &x, float &y)
{
- if(!i_mapEntry)
+ if (!i_mapEntry)
return false;
return i_mapEntry->GetEntrancePos(mapid, x, y);
}
@@ -538,12 +538,12 @@ class Map : public GridRefManager<NGridType>, public Trinity::ObjectLevelLockabl
void RemoveFromActiveHelper(T* obj)
{
// Map::Update for active object in proccess
- if(m_activeNonPlayersIter != m_activeNonPlayers.end())
+ if (m_activeNonPlayersIter != m_activeNonPlayers.end())
{
ActiveNonPlayers::iterator itr = m_activeNonPlayers.find(obj);
- if(itr == m_activeNonPlayers.end())
+ if (itr == m_activeNonPlayers.end())
return;
- if(itr==m_activeNonPlayersIter)
+ if (itr==m_activeNonPlayersIter)
++m_activeNonPlayersIter;
m_activeNonPlayers.erase(itr);
}
@@ -634,7 +634,7 @@ Map::Visit(const Cell& cell, TypeContainerVisitor<T, CONTAINER> &visitor)
const uint32 cell_x = cell.CellX();
const uint32 cell_y = cell.CellY();
- if( !cell.NoCreate() || loaded(GridPair(x,y)) )
+ if ( !cell.NoCreate() || loaded(GridPair(x,y)) )
{
EnsureGridLoaded(cell);
getNGrid(x, y)->Visit(cell_x, cell_y, visitor);