Skip to content

Commit

Permalink
Update DungGine.h
Browse files Browse the repository at this point in the history
Oops
  • Loading branch information
razterizer authored Oct 3, 2024
1 parent b2c8e4d commit 7cb789b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DungGine.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<float>(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;
Expand Down

0 comments on commit 7cb789b

Please sign in to comment.