Ticket #8538: residual-engine.diff
File residual-engine.diff, 692 bytes (added by , 18 years ago) |
---|
-
engine.cpp
void Engine::mainLoop() { 424 424 425 425 // Process events 426 426 Driver::Event event; 427 bool lua_updated = false; 427 428 while (g_driver->pollEvent(event)) { 428 429 // Handle any button operations 429 430 if (event.type == Driver::EVENT_KEYDOWN || event.type == Driver::EVENT_KEYUP) … … void Engine::mainLoop() { 439 440 handleDebugLoadResource(); 440 441 } 441 442 } 443 444 luaUpdate (); 445 lua_updated = true; 442 446 } 443 447 444 luaUpdate(); 448 if (!lua_updated) 449 luaUpdate (); 445 450 446 451 if (_mode != ENGINE_MODE_PAUSE) { 447 452 updateDisplayScene();