Skip to content

Commit

Permalink
fix ci
Browse files Browse the repository at this point in the history
  • Loading branch information
MatusGuy committed Oct 12, 2024
1 parent 03b4ad2 commit f1d3310
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/badguy/boss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@ Boss::draw_hit_points(DrawingContext& context)
context.set_translation(Vector(0, 0));
context.transform().scale = 1.f;

float startpos = (context.get_width() - (m_hud_head->get_width() * m_max_lives)) / 2;
float startpos = static_cast<float>((context.get_width() - (m_hud_head->get_width() * m_max_lives))) / 2;
for (int i = 0; i < m_lives; ++i)
{
context.color().draw_surface(m_hud_head,
Vector(BORDER_X + (static_cast<float>(startpos + i * m_hud_head->get_width())),
Vector(BORDER_X + (startpos + static_cast<float>(i * m_hud_head->get_width())),
BORDER_Y + 1),
LAYER_HUD);
}
Expand Down

0 comments on commit f1d3310

Please sign in to comment.