From 306aa4dd7342b1a1885c8159678003d80941636d Mon Sep 17 00:00:00 2001 From: Rasmus Anthin Date: Tue, 1 Oct 2024 18:49:53 +0200 Subject: [PATCH] pilot_episode.cpp: * Windows warning fix. --- Pilot_Episode/pilot_episode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Pilot_Episode/pilot_episode.cpp b/Pilot_Episode/pilot_episode.cpp index 57a8f47..37da67a 100644 --- a/Pilot_Episode/pilot_episode.cpp +++ b/Pilot_Episode/pilot_episode.cpp @@ -103,7 +103,7 @@ class Game : public GameEngine<> //if (argc >= 2) // GameEngine::set_delay_us(atoi(argv[1])); if (argc >= 2) - GameEngine::set_real_fps(atoi(argv[1])); + GameEngine::set_real_fps(atof(argv[1])); auto set_alt = [&]() -> float { return -alt_km_f * 1e3f / pix_to_m + ground_level + 13 * pix_ar2; }; plane_data::y_pos = set_alt();