diff options
author | Spp <none@none> | 2010-04-07 19:14:10 +0200 |
---|---|---|
committer | Spp <none@none> | 2010-04-07 19:14:10 +0200 |
commit | d19e12708001fbef2308be0e8cb5375a2ac7af48 (patch) | |
tree | 09fc8f67a6197802e0512950f0b0a3438a9834e8 /src/game/GridStates.cpp | |
parent | 2e127f7a30706dc1d40c65de22ff02851732da24 (diff) |
Code style (game + scripts only):
"if(" --> "if ("
--HG--
branch : trunk
Diffstat (limited to 'src/game/GridStates.cpp')
-rw-r--r-- | src/game/GridStates.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/game/GridStates.cpp b/src/game/GridStates.cpp index 9ce41672027..94a1393bfa1 100644 --- a/src/game/GridStates.cpp +++ b/src/game/GridStates.cpp @@ -33,9 +33,9 @@ ActiveState::Update(Map &m, NGridType &grid, GridInfo & info, const uint32 &x, c { // Only check grid activity every (grid_expiry/10) ms, because it's really useless to do it every cycle info.UpdateTimeTracker(t_diff); - if( info.getTimeTracker().Passed() ) + if ( info.getTimeTracker().Passed() ) { - if( grid.ActiveObjectsInGrid() == 0 && !m.ActiveObjectsNearGrid(x, y) ) + if ( grid.ActiveObjectsInGrid() == 0 && !m.ActiveObjectsNearGrid(x, y) ) { ObjectGridStoper stoper(grid); stoper.StopN(); @@ -60,12 +60,12 @@ IdleState::Update(Map &m, NGridType &grid, GridInfo &, const uint32 &x, const ui void RemovalState::Update(Map &m, NGridType &grid, GridInfo &info, const uint32 &x, const uint32 &y, const uint32 &t_diff) const { - if(!info.getUnloadLock()) + if (!info.getUnloadLock()) { info.UpdateTimeTracker(t_diff); - if( info.getTimeTracker().Passed() ) + if ( info.getTimeTracker().Passed() ) { - if( !m.UnloadGrid(x, y, false) ) + if ( !m.UnloadGrid(x, y, false) ) { sLog.outDebug("Grid[%u,%u] for map %u differed unloading due to players or active objects nearby", x, y, m.GetId()); m.ResetGridExpiry(grid); |