From 8bcbd2729388edc63c82d77d314b583af1447c49 Mon Sep 17 00:00:00 2001 From: untodesu Date: Sun, 14 Sep 2025 19:16:44 +0500 Subject: Cleanup math with qfengine ports again --- game/client/entity/player_look.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'game/client/entity/player_look.cc') diff --git a/game/client/entity/player_look.cc b/game/client/entity/player_look.cc index caa367e..b6eaf16 100644 --- a/game/client/entity/player_look.cc +++ b/game/client/entity/player_look.cc @@ -55,7 +55,7 @@ static void add_angles(float pitch, float yaw) head.angles[0] += pitch; head.angles[1] += yaw; - head.angles[0] = math::clamp(head.angles[0], PITCH_MIN, PITCH_MAX); + head.angles[0] = glm::clamp(head.angles[0], PITCH_MIN, PITCH_MAX); head.angles = math::wrap_180(head.angles); // Client-side head angles are not interpolated; -- cgit