Mercurial > fife-parpg
diff engine/core/model/structures/layer.cpp @ 181:56ac89189bc4
fixed time handling in fife:
- the time scaling method was unreliable when changing the time factors (jumping in the moment of the change)
- replaced much calls to SDL_GetTicks with TimerManager::instance()->getTime()
- some other time related cleanup
author | spq@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Sat, 31 Jan 2009 04:15:43 +0000 |
parents | 64e7fe3d4288 |
children | 51cc05d862f2 |
line wrap: on
line diff
--- a/engine/core/model/structures/layer.cpp Fri Jan 30 00:58:43 2009 +0000 +++ b/engine/core/model/structures/layer.cpp Sat Jan 31 04:15:43 2009 +0000 @@ -203,10 +203,9 @@ bool Layer::update() { m_changedinstances.clear(); - unsigned int curticks = SDL_GetTicks(); std::vector<Instance*>::iterator it = m_instances.begin(); for(; it != m_instances.end(); ++it) { - if ((*it)->update(curticks) != ICHANGE_NO_CHANGES) { + if ((*it)->update() != ICHANGE_NO_CHANGES) { m_changedinstances.push_back(*it); m_changed = true; }