forked from Mirrorlandia_minetest/minetest
Fix initial moving of mouse above the "exit to menu" button in singleplayer mode
This commit is contained in:
parent
5957fed9a7
commit
4aa0f040fb
@ -1362,6 +1362,9 @@ void the_game(
|
|||||||
&g_menumgr, simple_singleplayer_mode))->drop();
|
&g_menumgr, simple_singleplayer_mode))->drop();
|
||||||
|
|
||||||
// Move mouse cursor on top of the disconnect button
|
// Move mouse cursor on top of the disconnect button
|
||||||
|
if(simple_singleplayer_mode)
|
||||||
|
input->setMousePos(displaycenter.X, displaycenter.Y+0);
|
||||||
|
else
|
||||||
input->setMousePos(displaycenter.X, displaycenter.Y+25);
|
input->setMousePos(displaycenter.X, displaycenter.Y+25);
|
||||||
}
|
}
|
||||||
else if(input->wasKeyDown(getKeySetting("keymap_chat")))
|
else if(input->wasKeyDown(getKeySetting("keymap_chat")))
|
||||||
|
Loading…
Reference in New Issue
Block a user