diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-08-21 11:23:16 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2018-08-21 11:23:16 +0200 |
commit | a0e2ff6eab4866471c1c4fe3ddd12fdd8c616739 (patch) | |
tree | 99998d24ae70527770432af228eb3c41bc9aedd5 /src/RendererWorld.cpp | |
parent | More correct block rotating (diff) | |
download | AltCraft-a0e2ff6eab4866471c1c4fe3ddd12fdd8c616739.tar AltCraft-a0e2ff6eab4866471c1c4fe3ddd12fdd8c616739.tar.gz AltCraft-a0e2ff6eab4866471c1c4fe3ddd12fdd8c616739.tar.bz2 AltCraft-a0e2ff6eab4866471c1c4fe3ddd12fdd8c616739.tar.lz AltCraft-a0e2ff6eab4866471c1c4fe3ddd12fdd8c616739.tar.xz AltCraft-a0e2ff6eab4866471c1c4fe3ddd12fdd8c616739.tar.zst AltCraft-a0e2ff6eab4866471c1c4fe3ddd12fdd8c616739.zip |
Diffstat (limited to '')
-rw-r--r-- | src/RendererWorld.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/RendererWorld.cpp b/src/RendererWorld.cpp index 2ed2620..023ac32 100644 --- a/src/RendererWorld.cpp +++ b/src/RendererWorld.cpp @@ -349,7 +349,7 @@ void RendererWorld::Render(RenderState & renderState) { model = glm::translate(model, gs->player->pos.glm()); const float scale = 1000000.0f; model = glm::scale(model, glm::vec3(scale, scale, scale)); - float shift = gs->TimeOfDay / 24000.0f; + float shift = gs->interpolatedTimeOfDay / 24000.0f; if (shift < 0) shift *= -1.0f; model = glm::rotate(model, glm::radians(90.0f), glm::vec3(0, 1.0f, 0.0f)); |