Skip to content

Commit

Permalink
Update DungGine.h
Browse files Browse the repository at this point in the history
Hopefully fixes two of the windows warnings.
  • Loading branch information
razterizer authored Oct 3, 2024
1 parent 7c18893 commit 5dc2e57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DungGine.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<Season>(math::roundI(7*t_season_period));
}

Expand Down

0 comments on commit 5dc2e57

Please sign in to comment.