diff options
author | ShadowNinja <shadowninja@minetest.net> | 2015-10-29 23:10:05 -0400 |
---|---|---|
committer | ShadowNinja <shadowninja@minetest.net> | 2015-10-31 13:28:58 -0400 |
commit | b872df6ef6a15ae4624b35ea7b8960bc24da1128 (patch) | |
tree | 3791bc85c977b160a2c1ccf95734b54e70b1f4e4 | |
parent | fdede6003446efe2002fc650f635f1be73265116 (diff) | |
download | minetest-b872df6ef6a15ae4624b35ea7b8960bc24da1128.tar.gz minetest-b872df6ef6a15ae4624b35ea7b8960bc24da1128.tar.bz2 minetest-b872df6ef6a15ae4624b35ea7b8960bc24da1128.zip |
Fix clang warning
-rw-r--r-- | src/camera.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/camera.cpp b/src/camera.cpp index 5370396a9..0b3413591 100644 --- 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 = fabs(speed.Y) > BS; const bool walking = movement_XZ && player->touching_ground; const bool swimming = (movement_XZ || player->swimming_vertical) && player->in_liquid; |