Close formspec on client shutdown. (#5811)
authorred-001 <red-001@outlook.ie>
Thu, 25 May 2017 10:46:24 +0000 (11:46 +0100)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Thu, 25 May 2017 10:46:24 +0000 (12:46 +0200)
This ensures the shutting down progress bar is correctly rendered. This fixes #3050.

src/game.cpp

index 1ddf07fd114ea73c5bb5df25a9dd0bd7738797bb..ff473e022922541b32164cc744184855a0cef39b 100644 (file)
@@ -1701,6 +1701,8 @@ void Game::shutdown()
                driver->setRenderTarget(irr::video::ERT_STEREO_BOTH_BUFFERS);
        }
 #endif
+       if (current_formspec)
+               current_formspec->quitMenu();
 
        showOverlayMessage(wgettext("Shutting down..."), 0, 0, false);