summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorred-001 <red-001@outlook.ie>2017-05-25 11:46:24 +0100
committerLoïc Blot <nerzhul@users.noreply.github.com>2017-05-25 12:46:24 +0200
commit2f291e6685e8d1866184460d547d089b5b3125fd (patch)
treed3805062cd286753cb7c8f510884caaeb27b2ea8 /src/game.cpp
parent099624a513198334ba66c4770e8679d6b2a9138a (diff)
downloadminetest-2f291e6685e8d1866184460d547d089b5b3125fd.tar.gz
minetest-2f291e6685e8d1866184460d547d089b5b3125fd.tar.bz2
minetest-2f291e6685e8d1866184460d547d089b5b3125fd.zip
Close formspec on client shutdown. (#5811)
This ensures the shutting down progress bar is correctly rendered. This fixes #3050.
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp2
1 files changed, 2 insertions, 0 deletions
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);