From 5dc2e577e5f033047e140854fdedc437bd0cad22 Mon Sep 17 00:00:00 2001 From: Rasmus Anthin <32767250+razterizer@users.noreply.github.com> Date: Thu, 3 Oct 2024 12:39:23 +0200 Subject: [PATCH] Update DungGine.h Hopefully fixes two of the windows warnings. --- DungGine.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DungGine.h b/DungGine.h index fba952e..6476821 100644 --- a/DungGine.h +++ b/DungGine.h @@ -85,10 +85,10 @@ namespace dung void update_sun(float real_time_s) { - m_t_solar_period = std::fmod(m_sun_day_t_offs + (real_time_s / 60.f) / m_sun_minutes_per_day, 1); + m_t_solar_period = std::fmod(m_sun_day_t_offs + (real_time_s / 60.f) / m_sun_minutes_per_day, 1.f); m_sun_dir = m_solar_motion.get_solar_direction(m_latitude, m_longitude, m_season, m_t_solar_period); - float t_season_period = std::fmod(m_sun_year_t_offs + (real_time_s / 60.f) / m_sun_minutes_per_year, 1); + float t_season_period = std::fmod(m_sun_year_t_offs + (real_time_s / 60.f) / m_sun_minutes_per_year, 1.); m_season = static_cast(math::roundI(7*t_season_period)); }