X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fgame%2Fsystem.cpp;h=4c1f4fbba01fa46ecc8b39c9a9dcb80172925c6b;hb=ffbfe95f51058c4de3c898b1a02e2fadba2b8134;hp=33157c3946990c6c64b25b1b8b6f0ee8782f35da;hpb=bfbcfa2678c70d661cb9104b2ef677d7d7b5a637;p=libs%2Fgame.git diff --git a/source/game/system.cpp b/source/game/system.cpp index 33157c3..4c1f4fb 100644 --- a/source/game/system.cpp +++ b/source/game/system.cpp @@ -13,15 +13,27 @@ void System::begin_tick() active = this; for(const Dependency &d: dependencies) + { +#ifdef DEBUG + if(d.unblock) + d.unblock(d.flags); +#endif if(d.prepare) d.prepare(stage); + } } void System::end_tick() { for(const Dependency &d: dependencies) + { if(d.commit) d.commit(stage); +#ifdef DEBUG + if(d.block) + d.block(d.flags); +#endif + } if(active==this) active = nullptr;