summaryrefslogtreecommitdiff
path: root/src/client/camera.h
diff options
context:
space:
mode:
authorJude Melton-Houghton <jwmhjwmh@gmail.com>2021-10-25 14:31:14 -0400
committerGitHub <noreply@github.com>2021-10-25 20:31:14 +0200
commit1e26e4553033ebb11991721ba836e6425f556851 (patch)
treef641c6ce32dc01d692ab8b0e79e2c21c434d7e8c /src/client/camera.h
parent660e63dbae5901f8178b39ab40e6f770b8d7a215 (diff)
downloadminetest-1e26e4553033ebb11991721ba836e6425f556851.tar.gz
minetest-1e26e4553033ebb11991721ba836e6425f556851.tar.bz2
minetest-1e26e4553033ebb11991721ba836e6425f556851.zip
Limit stepheight smoothing to the stepheight and stop smoothing during jumps (#11705)
Diffstat (limited to 'src/client/camera.h')
-rw-r--r--src/client/camera.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client/camera.h b/src/client/camera.h
index 593a97d80..bea9ab333 100644
--- a/src/client/camera.h
+++ b/src/client/camera.h
@@ -218,6 +218,8 @@ private:
// Camera offset
v3s16 m_camera_offset;
+ bool m_stepheight_smooth_active = false;
+
// Server-sent FOV variables
bool m_server_sent_fov = false;
f32 m_curr_fov_degrees, m_old_fov_degrees, m_target_fov_degrees;