From 7cb789b4b3f2bfb8d0cf883e095fa71d9b643106 Mon Sep 17 00:00:00 2001 From: Rasmus Anthin <32767250+razterizer@users.noreply.github.com> Date: Thu, 3 Oct 2024 17:55:35 +0200 Subject: [PATCH] Update DungGine.h Oops --- DungGine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DungGine.h b/DungGine.h index 16d68fe..347c73e 100644 --- a/DungGine.h +++ b/DungGine.h @@ -359,7 +359,7 @@ namespace dung if (lo_angle_rad > hi_angle_rad) hi_angle_rad += math::c_2pi; - float curr_angle_rad = std::atan2f(-(obj.pos.r - curr_pos.r), obj.pos.c - curr_pos.c); + float curr_angle_rad = static_cast(std::atan2(-(obj.pos.r - curr_pos.r), obj.pos.c - curr_pos.c)); f_normalize_angle(curr_angle_rad); if (curr_angle_rad < lo_angle_rad) curr_angle_rad += math::c_2pi;