From: Daniel Karbach Date: Fri, 30 Oct 2015 10:34:02 +0000 (+0100) Subject: fix entity pitch clamping X-Git-Url: https://git.localhorst.tv/?a=commitdiff_plain;h=712000879e89895fee2e364aa6b5db48a1f81b8b;p=blank.git fix entity pitch clamping --- diff --git a/src/world/world.cpp b/src/world/world.cpp index bf2abf3..4ac765c 100644 --- a/src/world/world.cpp +++ b/src/world/world.cpp @@ -233,7 +233,7 @@ void EntityState::AdjustPosition() noexcept { } void EntityState::AdjustHeading() noexcept { - glm::clamp(pitch, -PI_0p5, PI_0p5); + pitch = glm::clamp(pitch, -PI_0p5, PI_0p5); while (yaw > PI) { yaw -= PI_2p0; }