From 4aa0f040fbe3464a67dbb41904e5d98db2aae5b5 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Thu, 15 Mar 2012 15:57:31 +0200 Subject: [PATCH] Fix initial moving of mouse above the "exit to menu" button in singleplayer mode --- src/game.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"))) { -- 2.30.2