From cb9b99ec7eb3fcec81010d4d0bff9688361e0e31 Mon Sep 17 00:00:00 2001 From: Rasmus Anthin Date: Tue, 1 Oct 2024 22:02:08 +0200 Subject: [PATCH] HotAirBalloons.h: * More windows warnings fixes. --- Pilot_Episode/HotAirBalloons.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Pilot_Episode/HotAirBalloons.h b/Pilot_Episode/HotAirBalloons.h index 4848009..735f803 100644 --- a/Pilot_Episode/HotAirBalloons.h +++ b/Pilot_Episode/HotAirBalloons.h @@ -10,8 +10,8 @@ void draw_hot_air_balloon_small(SpriteHandler& 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(c - parallax * x_pos); + auto rr = static_cast(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);