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-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=acd7ce897d2ea30699ca83aa1304987b1eea7880;p=zefram%2Fminetest%2Fminetest_engine.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 e82e4cd8..603a86da 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"))) {