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/GridStates.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/game/GridStates.cpp') 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); -- cgit v1.2.3