Skip to content

Commit

Permalink
Fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
bruhmoent authored Jul 13, 2024
1 parent d324f56 commit ec30ddb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/object/player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ Player::update(float dt_sec)
glm::vec2 beak_position;

// Determine direction based on the radians
if (m_swimming_angle > M_PI_2 && m_swimming_angle < 3.0 * M_PI_2) // Facing left
if (m_swimming_angle > static_cast<float>(M_PI_2) && m_swimming_angle < 3.0f * static_cast<float>(M_PI_2)) // Facing left
{
beak_position = player_center + glm::vec2(rotated_beak_offset_x, rotated_beak_offset_y);
}
Expand All @@ -570,7 +570,7 @@ Player::update(float dt_sec)
SurfacePtr bubble_surface = m_bubble_particles[random_index];

glm::vec2 bubble_pos;
if (m_swimming_angle > M_PI_2 && m_swimming_angle < 3.0 * M_PI_2) // Facing left
if (m_swimming_angle > static_cast<float>(M_PI_2) && m_swimming_angle < 3.0f * static_cast<float>(M_PI_2)) // Facing left
{
bubble_pos = beak_position + glm::vec2(offset_x, offset_y);
}
Expand Down

0 comments on commit ec30ddb

Please sign in to comment.