From: Perttu Ahola Date: Thu, 15 Mar 2012 13:57:31 +0000 (+0200) Subject: Fix initial moving of mouse above the "exit to menu" button in singleplayer mode X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=4aa0f040fbe3464a67dbb41904e5d98db2aae5b5;p=zefram%2Fminetest%2Fminetest_engine.git Fix initial moving of mouse above the "exit to menu" button in singleplayer mode --- diff --git a/src/game.cpp b/src/game.cpp index 7d6f884e..90856eff 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -1362,7 +1362,10 @@ void the_game( &g_menumgr, simple_singleplayer_mode))->drop(); // Move mouse cursor on top of the disconnect button - input->setMousePos(displaycenter.X, displaycenter.Y+25); + if(simple_singleplayer_mode) + input->setMousePos(displaycenter.X, displaycenter.Y+0); + else + input->setMousePos(displaycenter.X, displaycenter.Y+25); } else if(input->wasKeyDown(getKeySetting("keymap_chat"))) {