aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-05-24 21:04:22 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-05-24 21:04:22 +0300
commitacd7ce897d2ea30699ca83aa1304987b1eea7880 (patch)
treee6258188be80f0a11012fb04095ccf9a62fc3394
parent12ca835e1404a6c9750a17d327a7d8bd97bafcb4 (diff)
downloadminetest-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.cpp3
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")))
{