diff options
author | megamage <none@none> | 2009-05-03 10:34:02 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-03 10:34:02 -0500 |
commit | 558a5707ff50edf93375ae6e50335422c9ec13e4 (patch) | |
tree | 9a62f957f9ac6076fee07e5143aa3529591add80 /src/game/GridNotifiers.cpp | |
parent | bb4499887cf9592905fd3cec55c3ab8799960013 (diff) |
*Only update object which are in world.
--HG--
branch : trunk
Diffstat (limited to 'src/game/GridNotifiers.cpp')
-rw-r--r-- | src/game/GridNotifiers.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/GridNotifiers.cpp b/src/game/GridNotifiers.cpp index e27abeccd0c..fe1a072cf20 100644 --- a/src/game/GridNotifiers.cpp +++ b/src/game/GridNotifiers.cpp @@ -200,7 +200,8 @@ ObjectUpdater::Visit(GridRefManager<T> &m) { for(typename GridRefManager<T>::iterator iter = m.begin(); iter != m.end(); ++iter) { - iter->getSource()->Update(i_timeDiff); + if(iter->getSource()->IsInWorld()) + iter->getSource()->Update(i_timeDiff); } } |