Close formspec on client shutdown. (#5811)

This ensures the shutting down progress bar is correctly rendered. This fixes #3050.
This commit is contained in:
red-001 2017-05-25 11:46:24 +01:00 committed by Loïc Blot
parent 099624a513
commit 2f291e6685
1 changed files with 2 additions and 0 deletions

View 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);