1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix camera jumping on Android when panning past 0/360 mark

This commit is contained in:
rubenwardy 2016-12-11 21:57:43 +00:00
parent d9675d3d92
commit 0fdf24d64a
3 changed files with 15 additions and 15 deletions

View file

@ -1205,7 +1205,7 @@ static inline void create_formspec_menu(GUIFormSpecMenu **cur_formspec,
(*cur_formspec)->setFormSource(fs_src);
(*cur_formspec)->setTextDest(txt_dest);
}
}
#ifdef __ANDROID__
@ -3362,8 +3362,8 @@ void Game::updateCameraOrientation(CameraOrientation *cam,
{
#ifdef HAVE_TOUCHSCREENGUI
if (g_touchscreengui) {
cam->camera_yaw = g_touchscreengui->getYaw();
cam->camera_pitch = g_touchscreengui->getPitch();
cam->camera_yaw += g_touchscreengui->getYawChange();
cam->camera_pitch = g_touchscreengui->getPitch();
} else {
#endif