projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdede60
)
Fix clang warning
author
ShadowNinja
<shadowninja@minetest.net>
Fri, 30 Oct 2015 03:10:05 +0000
(23:10 -0400)
committer
ShadowNinja
<shadowninja@minetest.net>
Sat, 31 Oct 2015 17:28:58 +0000
(13:28 -0400)
src/camera.cpp
patch
|
blob
|
history
diff --git
a/src/camera.cpp
b/src/camera.cpp
index 5370396a9259c9254d1a20a8a9cfa18cf1ddd390..0b3413591d430eddc724a28bcaea1605d93829cd 100644
(file)
--- a/
src/camera.cpp
+++ b/
src/camera.cpp
@@
-460,7
+460,7
@@
void Camera::update(LocalPlayer* player, f32 frametime, f32 busytime,
// start (or continue) the view bobbing animation.
v3f speed = player->getSpeed();
const bool movement_XZ = hypot(speed.X, speed.Z) > BS;
- const bool movement_Y = abs(speed.Y) > BS;
+ const bool movement_Y =
f
abs(speed.Y) > BS;
const bool walking = movement_XZ && player->touching_ground;
const bool swimming = (movement_XZ || player->swimming_vertical) && player->in_liquid;