diff options
Diffstat (limited to 'StarsEx/Weather.cpp')
-rw-r--r-- | StarsEx/Weather.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/StarsEx/Weather.cpp b/StarsEx/Weather.cpp index 8d3ded6..ffbdaff 100644 --- a/StarsEx/Weather.cpp +++ b/StarsEx/Weather.cpp @@ -12,9 +12,9 @@ */ #include "Weather.h" -#include "StarSystem.h" -#include "Game.h" + #include "ContentBundle.h" +#include "Stardate.h" // +--------------------------------------------------------------------+ @@ -94,7 +94,7 @@ Weather::Update() { NormalizeChances(); - double weather = (sin(StarSystem::Stardate() * 2 * PI / period)+1)/2; + const auto weather = (sin(starshatter::engine::CurrentTime() * 2.0 * PI / period) + 1.0) / 2.0; state = active_states[0]; |