Index: engine.cpp
===================================================================
--- engine.cpp	(Revision 22626)
+++ engine.cpp	(Arbeitskopie)
@@ -424,6 +424,7 @@ void Engine::mainLoop() {
 
 		// Process events
 		Driver::Event event;
+		bool lua_updated = false;
 		while (g_driver->pollEvent(event)) {
 			// Handle any button operations
 			if (event.type == Driver::EVENT_KEYDOWN || event.type == Driver::EVENT_KEYUP)
@@ -439,9 +440,13 @@ void Engine::mainLoop() {
 					handleDebugLoadResource();
 				}
 			}
+
+			luaUpdate ();
+			lua_updated = true;
 		}
 
-		luaUpdate();
+		if (!lua_updated)
+			luaUpdate ();
 
 		if (_mode != ENGINE_MODE_PAUSE) {
 			updateDisplayScene();
