summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2013-10-29 19:43:41 +0100
committerSamuel Barney <samjbarney@gmail.com>2013-10-29 19:43:41 +0100
commite94307c29242e9d7e663c774840568a2b73fd400 (patch)
treea4372da37ee02b0e3912ff73defa3a79e45faa71 /source/World.cpp
parentUpdate to allow the light map to remain the same, but allow alteration of sky light values based on time. (diff)
downloadcuberite-e94307c29242e9d7e663c774840568a2b73fd400.tar
cuberite-e94307c29242e9d7e663c774840568a2b73fd400.tar.gz
cuberite-e94307c29242e9d7e663c774840568a2b73fd400.tar.bz2
cuberite-e94307c29242e9d7e663c774840568a2b73fd400.tar.lz
cuberite-e94307c29242e9d7e663c774840568a2b73fd400.tar.xz
cuberite-e94307c29242e9d7e663c774840568a2b73fd400.tar.zst
cuberite-e94307c29242e9d7e663c774840568a2b73fd400.zip
Diffstat (limited to '')
-rw-r--r--source/World.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/World.cpp b/source/World.cpp
index dcd51afcf..ad34dc6a5 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -609,6 +609,7 @@ void cWorld::Tick(float a_Dt)
m_WorldAge = (Int64)(m_WorldAgeSecs * 20.0);
m_TimeOfDay = (Int64)(m_TimeOfDaySecs * 20.0);
+ // Updates the sky darkness based on current time of day
UpdateSkyDarkness();
// Broadcast time update every 40 ticks (2 seconds)