]> git.tdb.fi Git - libs/game.git/blobdiff - source/game/stage.cpp
Add a way for systems to do things at the end of a tick
[libs/game.git] / source / game / stage.cpp
index 1c56c7e8a159abe3e41f32bb3b4b629eb4ffb533..83176104348538a148d667c9126fff11107e7a8b 100644 (file)
@@ -39,6 +39,8 @@ void Stage::tick(Time::TimeDelta dt)
 {
        for(const auto &s: systems)
                s->tick(dt);
+       for(const auto &s: systems)
+               s->deferred_tick();
 }
 
 } // namespace Msp::Game