summaryrefslogtreecommitdiffstats
path: root/src/RendererWorld.cpp
diff options
context:
space:
mode:
authorLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-24 10:58:04 +0200
committerLaG1924 <12997935+LaG1924@users.noreply.github.com>2018-08-24 10:58:04 +0200
commit2c78d4f5004096c8fc1b58d66fbe01d0d370984e (patch)
tree08f0d3459c03ca994abc7520ae77ff63c36e7924 /src/RendererWorld.cpp
parentFixed crash when connection lost (diff)
downloadAltCraft-2c78d4f5004096c8fc1b58d66fbe01d0d370984e.tar
AltCraft-2c78d4f5004096c8fc1b58d66fbe01d0d370984e.tar.gz
AltCraft-2c78d4f5004096c8fc1b58d66fbe01d0d370984e.tar.bz2
AltCraft-2c78d4f5004096c8fc1b58d66fbe01d0d370984e.tar.lz
AltCraft-2c78d4f5004096c8fc1b58d66fbe01d0d370984e.tar.xz
AltCraft-2c78d4f5004096c8fc1b58d66fbe01d0d370984e.tar.zst
AltCraft-2c78d4f5004096c8fc1b58d66fbe01d0d370984e.zip
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)