X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fgame%2Fstage.cpp;h=bdd0ed676d27200fe87c9ee89e4231874b643f69;hb=48051ee2bab13f65e48c371e453b9ea65920921e;hp=81893e1e1ef8c27ca72db42e456c78462a999452;hpb=cb4e8bbe06dc64aff932784541a29493723fc03e;p=libs%2Fgame.git diff --git a/source/game/stage.cpp b/source/game/stage.cpp index 81893e1..bdd0ed6 100644 --- a/source/game/stage.cpp +++ b/source/game/stage.cpp @@ -1,4 +1,5 @@ #include "stage.h" +#include "accessguard.h" #include "camera.h" #include "root.h" #include "system.h" @@ -53,8 +54,14 @@ void Stage::synthesize_initial_events(Handle entity, EventObserver &targ void Stage::tick(Time::TimeDelta dt) { - for(const auto &s: systems) - s->tick(dt); + { +#ifdef DEBUG + AccessGuard::BlockForScope _block;; +#endif + for(const auto &s: systems) + s->tick(dt); + } + for(const auto &s: systems) s->deferred_tick(); }