Skip to content

Commit

Permalink
Respect GameSettings.KERBIN_TIME when defaulting days in year
Browse files Browse the repository at this point in the history
  • Loading branch information
SirMortimer committed Jun 25, 2019
1 parent ab0bd0c commit 84de62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Kerbalism/Lib.cs
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ public static double DaysInYear()
var homeBody = FlightGlobals.GetHomeBody();
return Math.Floor(homeBody.orbit.period / (HoursInDay() * 60.0 * 60.0));
}
return 426.0;
return GameSettings.KERBIN_TIME ? 426.0 : 365.0;
}

// stop time warping
Expand Down

0 comments on commit 84de62f

Please sign in to comment.