From bce8d0687f44def4b0171cd84bf1441fc4390e58 Mon Sep 17 00:00:00 2001 From: Andy Belle-Isle Date: Sun, 15 Sep 2019 03:18:26 -0400 Subject: Added event subsection of code --- src/engine.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/engine.cpp') diff --git a/src/engine.cpp b/src/engine.cpp index 191493e..e38020d 100644 --- a/src/engine.cpp +++ b/src/engine.cpp @@ -78,6 +78,8 @@ void Engine::logicLoop(void) // Update 20 times a second if (elapsed > 50) { elapsed = 0; + + systems.update(dt); // All entities with an idle function should be run here entities.each([](entityx::Entity, Scripted &f){ -- cgit v1.2.3