diff options
author | ROllerozxa <rollerozxa@voxelmanip.se> | 2023-01-08 14:04:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-08 14:04:17 +0100 |
commit | 390b5caaaacc7ba504d87331dad116208d90a6e7 (patch) | |
tree | d32db86cdff04ee4ca3464c9b4b83d496ff11a58 /src/client/clientlauncher.cpp | |
parent | fb28ca463ea2762b43fe0d94955f6ede4df72f38 (diff) | |
download | minetest-390b5caaaacc7ba504d87331dad116208d90a6e7.tar.xz |
Fix crash on Android with IrrlichtMt9 (#13123)
Caused by mouse control
Diffstat (limited to 'src/client/clientlauncher.cpp')
-rw-r--r-- | src/client/clientlauncher.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/clientlauncher.cpp b/src/client/clientlauncher.cpp index 94d2a38c9..843c7ad32 100644 --- a/src/client/clientlauncher.cpp +++ b/src/client/clientlauncher.cpp @@ -548,15 +548,18 @@ void ClientLauncher::main_menu(MainMenuData *menudata) } infostream << "Waited for other menus" << std::endl; - // Cursor can be non-visible when coming from the game #ifndef ANDROID + // Cursor can be non-visible when coming from the game m_rendering_engine->get_raw_device()->getCursorControl()->setVisible(true); -#endif + // Set absolute mouse mode #if IRRLICHT_VERSION_MT_REVISION >= 9 m_rendering_engine->get_raw_device()->getCursorControl()->setRelativeMode(false); #endif +#endif + + /* show main menu */ GUIEngine mymenu(&input->joystick, guiroot, m_rendering_engine, &g_menumgr, menudata, *kill); |