Skip to content
Snippets Groups Projects
Commit b872df6e authored by ShadowNinja's avatar ShadowNinja
Browse files

Fix clang warning

parent fdede600
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment