|
|
@@ -494,6 +494,11 @@ void Engine::RunFrame()
|
|
|
time->BeginFrame(timeStep_);
|
|
|
|
|
|
// ATOMIC BEGIN
|
|
|
+
|
|
|
+ // check for exit again that comes in thru an event handler
|
|
|
+ if ( exiting_ ) // needed to prevent scripts running the
|
|
|
+ return; // current frame update with null objects
|
|
|
+
|
|
|
// If paused, or pause when minimized -mode is in use, stop updates and audio as necessary
|
|
|
if ((paused_ && !runNextPausedFrame_) ||
|
|
|
(pauseMinimized_ && input->IsMinimized()))
|