diff --git a/src/calendar.cpp b/src/calendar.cpp index d61aa0d11f5b4..e16a12b254b3c 100644 --- a/src/calendar.cpp +++ b/src/calendar.cpp @@ -449,15 +449,16 @@ void calendar::set_season_length( const int dur ) cur_season_length = dur; } +static constexpr int real_world_season_length = 91; +static constexpr int default_season_length = real_world_season_length; + float calendar::season_ratio() { - static const int real_world_season_length = 91; return to_days( season_length() ) / real_world_season_length; } float calendar::season_from_default_ratio() { - static const int default_season_length = 91; return to_days( season_length() ) / default_season_length; }