From: Perttu Ahola Date: Tue, 24 May 2011 18:04:22 +0000 (+0300) Subject: when pause menu is activated, move mouse cursor on top of the disconnect button,... X-Git-Tag: 0.2.20110731_3~174 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=acd7ce897d2ea30699ca83aa1304987b1eea7880;p=oweals%2Fminetest.git when pause menu is activated, move mouse cursor on top of the disconnect button, for convenience. --- 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"))) {