From 2f291e6685e8d1866184460d547d089b5b3125fd Mon Sep 17 00:00:00 2001 From: red-001 Date: Thu, 25 May 2017 11:46:24 +0100 Subject: Close formspec on client shutdown. (#5811) This ensures the shutting down progress bar is correctly rendered. This fixes #3050. --- src/game.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/game.cpp b/src/game.cpp index 1ddf07fd1..ff473e022 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -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); -- cgit v1.2.3