]> git.localhorst.tv Git - l2e.git/blobdiff - src/app/Application.cpp
made application state changes yet a bit safer
[l2e.git] / src / app / Application.cpp
index 80ebb5d1ac1c8ae51a63a508a4a763026d1b695e..29eaee781e9ba20780fafa2cc4bde331777d059a 100644 (file)
@@ -123,8 +123,10 @@ void Application::Loop() {
        if (deltaT > 34) deltaT = 34;
 
        HandleEvents();
-       UpdateWorld(deltaT);
-       Render();
+       if (!StateChangePending()) {
+               UpdateWorld(deltaT);
+               Render();
+       }
 
        last = now;
        UpdateState();