projects
/
zefram
/
minetest
/
minetest_engine.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5957fed
)
Fix initial moving of mouse above the "exit to menu" button in singleplayer mode
author
Perttu Ahola
<celeron55@gmail.com>
Thu, 15 Mar 2012 13:57:31 +0000
(15:57 +0200)
committer
Perttu Ahola
<celeron55@gmail.com>
Thu, 15 Mar 2012 14:20:21 +0000
(16:20 +0200)
src/game.cpp
patch
|
blob
|
history
diff --git
a/src/game.cpp
b/src/game.cpp
index 7d6f884e9ad8adf66a9ef1a3531edfa273dc1d31..90856effc799c7fb62cea48056f728f066c8e577 100644
(file)
--- 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")))
{