Skip to content

Commit

Permalink
Update DungGine.h
Browse files Browse the repository at this point in the history
Windows warning fix.
  • Loading branch information
razterizer authored Oct 3, 2024
1 parent 7cb789b commit fb6d158
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 @@ -588,7 +588,7 @@ namespace dung
tb_args.base.box_style = { Color::White, Color::DarkBlue };

std::string strength_bar = str::rep_char(' ', 10);
float pc_ratio = m_player.strength / 10;
float pc_ratio = m_player.strength / 10.f;
for (int i = 0; i < 10; ++i)
strength_bar[i] = (m_player.strength - m_player.weakness) > static_cast<int>(i*pc_ratio)
? '=' : ' ';
Expand Down

0 comments on commit fb6d158

Please sign in to comment.