when pause menu is activated, move mouse cursor on top of the disconnect button,...
authorPerttu Ahola <celeron55@gmail.com>
Tue, 24 May 2011 18:04:22 +0000 (21:04 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Tue, 24 May 2011 18:04:22 +0000 (21:04 +0300)
src/game.cpp

index e82e4cd8e59451fafe9810fe2a6431b507ff5187..603a86da3e0b53467d4286f0a0d2bd1a1d9c96cd 100644 (file)
@@ -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")))
                {