From: red-001 Date: Thu, 25 May 2017 10:46:24 +0000 (+0100) Subject: Close formspec on client shutdown. (#5811) X-Git-Tag: 0.4.16~62 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=2f291e6685e8d1866184460d547d089b5b3125fd;p=oweals%2Fminetest.git Close formspec on client shutdown. (#5811) This ensures the shutting down progress bar is correctly rendered. This fixes #3050. --- 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);