]> git.lizzy.rs Git - minetest.git/commitdiff
Singleplayer: Pause game in the key change dialog
authorSmallJoker <mk939@ymail.com>
Mon, 7 Aug 2017 12:53:58 +0000 (14:53 +0200)
committerSmallJoker <mk939@ymail.com>
Mon, 7 Aug 2017 13:29:46 +0000 (15:29 +0200)
Fixes #6201. @t0ny2 pointed to the right place. Thanks!

src/guiKeyChangeMenu.h

index 74f9344a23a91d803c0aa1c941764413527faf53..84d3fffcd927850c079d26ec28f86a70a3070255 100644 (file)
@@ -58,6 +58,8 @@ class GUIKeyChangeMenu : public GUIModalMenu
 
        bool OnEvent(const SEvent &event);
 
+       bool pausesGame() { return true; }
+
 private:
        void init_keys();