Fix initial moving of mouse above the "exit to menu" button in singleplayer mode
authorPerttu Ahola <celeron55@gmail.com>
Thu, 15 Mar 2012 13:57:31 +0000 (15:57 +0200)
committerPerttu Ahola <celeron55@gmail.com>
Thu, 15 Mar 2012 14:20:21 +0000 (16:20 +0200)
src/game.cpp

index 7d6f884e9ad8adf66a9ef1a3531edfa273dc1d31..90856effc799c7fb62cea48056f728f066c8e577 100644 (file)
@@ -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")))
                {