diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-05-24 21:04:22 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-05-24 21:04:22 +0300 |
commit | acd7ce897d2ea30699ca83aa1304987b1eea7880 (patch) | |
tree | e6258188be80f0a11012fb04095ccf9a62fc3394 | |
parent | 12ca835e1404a6c9750a17d327a7d8bd97bafcb4 (diff) | |
download | minetest-acd7ce897d2ea30699ca83aa1304987b1eea7880.tar.gz minetest-acd7ce897d2ea30699ca83aa1304987b1eea7880.tar.bz2 minetest-acd7ce897d2ea30699ca83aa1304987b1eea7880.zip |
when pause menu is activated, move mouse cursor on top of the disconnect button, for convenience.
-rw-r--r-- | src/game.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp index e82e4cd8e..603a86da3 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1135,6 +1135,9 @@ void the_game( // It will delete itself by itself (new GUIPauseMenu(guienv, guiroot, -1, g_gamecallback, &g_menumgr))->drop(); + + // Move mouse cursor on top of the disconnect button + input->setMousePos(displaycenter.X, displaycenter.Y+25); } else if(input->wasKeyDown(getKeySetting("keymap_chat"))) { |