summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/RendererWorld.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RendererWorld.cpp b/src/RendererWorld.cpp
index d91ea0e..bb8c8f4 100644
--- a/src/RendererWorld.cpp
+++ b/src/RendererWorld.cpp
@@ -367,7 +367,7 @@ void RendererWorld::Render(RenderState & renderState) {
const float moonriseLength = moonriseMax - moonriseMin;
float mixLevel = 0;
- int dayTime = gs->TimeOfDay;
+ float dayTime = gs->interpolatedTimeOfDay;
if (dayTime < 0)
dayTime *= -1;
while (dayTime > 24000)