aboutsummaryrefslogtreecommitdiff
path: root/src/client/game.cpp
diff options
context:
space:
mode:
authorROllerozxa <rollerozxa@voxelmanip.se>2023-01-08 14:04:17 +0100
committerGitHub <noreply@github.com>2023-01-08 14:04:17 +0100
commit390b5caaaacc7ba504d87331dad116208d90a6e7 (patch)
treed32db86cdff04ee4ca3464c9b4b83d496ff11a58 /src/client/game.cpp
parentfb28ca463ea2762b43fe0d94955f6ede4df72f38 (diff)
downloadminetest-390b5caaaacc7ba504d87331dad116208d90a6e7.tar.xz
Fix crash on Android with IrrlichtMt9 (#13123)
Caused by mouse control
Diffstat (limited to 'src/client/game.cpp')
-rw-r--r--src/client/game.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp
index 56d4ae13e..76612879c 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -2535,12 +2535,13 @@ void Game::checkZoomEnabled()
void Game::updateCameraDirection(CameraOrientation *cam, float dtime)
{
-#if IRRLICHT_VERSION_MT_REVISION >= 9
+#if !defined(__ANDROID__) && IRRLICHT_VERSION_MT_REVISION >= 9
if (isMenuActive())
device->getCursorControl()->setRelativeMode(false);
else
device->getCursorControl()->setRelativeMode(true);
#endif
+
if ((device->isWindowActive() && device->isWindowFocused()
&& !isMenuActive()) || input->isRandom()) {