diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-03-15 15:57:31 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-03-15 16:20:21 +0200 |
commit | 4aa0f040fbe3464a67dbb41904e5d98db2aae5b5 (patch) | |
tree | 046da0ea3b6046b75290993c866f0adce84fe4c4 | |
parent | 5957fed9a7df9297dd218b6400d612434e87ac5a (diff) | |
download | minetest-4aa0f040fbe3464a67dbb41904e5d98db2aae5b5.tar.gz minetest-4aa0f040fbe3464a67dbb41904e5d98db2aae5b5.tar.bz2 minetest-4aa0f040fbe3464a67dbb41904e5d98db2aae5b5.zip |
Fix initial moving of mouse above the "exit to menu" button in singleplayer mode
-rw-r--r-- | src/game.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 7d6f884e9..90856effc 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"))) { |