Skip to content

Commit

Permalink
Close formspec on client shutdown. (#5811)
Browse files Browse the repository at this point in the history
This ensures the shutting down progress bar is correctly rendered. This fixes #3050.
  • Loading branch information
red-001 authored and nerzhul committed May 25, 2017
1 parent 099624a commit 2f291e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/game.cpp
Expand Up @@ -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);

Expand Down

0 comments on commit 2f291e6

Please sign in to comment.