]> git.lizzy.rs Git - minetest.git/commit
Apply camera smoothing to 'air stepheight' (#10025)
authorParamat <paramat@users.noreply.github.com>
Sun, 5 Jul 2020 22:45:21 +0000 (23:45 +0100)
committerGitHub <noreply@github.com>
Sun, 5 Jul 2020 22:45:21 +0000 (23:45 +0100)
commitdc6318b84aa8c079330b2adc711113f7d4b55961
tree1048be737e01552039bc3d0f429cd0e9ad7a562a
parentda71313e1df3326c2b9ddb410b963ec25682319e
Apply camera smoothing to 'air stepheight' (#10025)

Recent changes to collision code have changed the behaviour of the 'touching_ground'
bool in movement code. This had the effect of disabling camera smoothing when
'air stepheight' occurred when jumping onto a node while pressing forwards against
the node, causing an unpleasant sharp camera movement.

Rewrite the conditions for camera smoothing such that it is applied when jumping.
src/client/camera.cpp