Skip to content

Commit

Permalink
HotAirBalloons.h:
Browse files Browse the repository at this point in the history
* More windows warnings fixes.
  • Loading branch information
razterizer committed Oct 1, 2024
1 parent 621a53f commit cb9b99e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Pilot_Episode/HotAirBalloons.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ void draw_hot_air_balloon_small(SpriteHandler<NR, NC>& sh,
for (const auto& rc : balloon_rc)
{
auto [r, c] = rc;
float cc = c - parallax * x_pos;
float rr = r - y_pos;
auto cc = static_cast<int>(c - parallax * x_pos);
auto rr = static_cast<int>(r - y_pos);
sh.write_buffer("_", rr, cc + 1, Color::Magenta);
sh.write_buffer("(&)", rr + 1, cc, Color::Magenta, Color::DarkCyan);
sh.write_buffer("#", rr + 2, cc + 1, Color::DarkYellow, Color::DarkGray);
Expand Down

0 comments on commit cb9b99e

Please sign in to comment.