summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-10 16:46:03 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-10 16:46:03 +0200
commitcccc321384be18d4ac75e83abf3ce4d19a2a3d56 (patch)
tree8232f107e8868244254cce381187a17eb8d8bf4b /src/World.cpp
parentMerge branch 'master' into LuaAPI (diff)
downloadcuberite-cccc321384be18d4ac75e83abf3ce4d19a2a3d56.tar
cuberite-cccc321384be18d4ac75e83abf3ce4d19a2a3d56.tar.gz
cuberite-cccc321384be18d4ac75e83abf3ce4d19a2a3d56.tar.bz2
cuberite-cccc321384be18d4ac75e83abf3ce4d19a2a3d56.tar.lz
cuberite-cccc321384be18d4ac75e83abf3ce4d19a2a3d56.tar.xz
cuberite-cccc321384be18d4ac75e83abf3ce4d19a2a3d56.tar.zst
cuberite-cccc321384be18d4ac75e83abf3ce4d19a2a3d56.zip
Diffstat (limited to '')
-rw-r--r--src/World.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/World.cpp b/src/World.cpp
index ab46e886c..dc1d9fedf 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -243,7 +243,7 @@ cWorld::cWorld(const AString & a_WorldName, eDimension a_Dimension, const AStrin
#endif
m_Dimension(a_Dimension),
m_IsSpawnExplicitlySet(false),
- m_CycleDaylight(true),
+ m_IsDaylightCycleEnabled(true),
m_WorldAgeSecs(0),
m_TimeOfDaySecs(0),
m_WorldAge(0),
@@ -832,7 +832,7 @@ void cWorld::Tick(float a_Dt, int a_LastTickDurationMSec)
m_WorldAgeSecs += (double)a_Dt / 1000.0;
m_WorldAge = (Int64)(m_WorldAgeSecs * 20.0);
- if (m_CycleDaylight)
+ if (m_IsDaylightCycleEnabled)
{
// We need sub-tick precision here, that's why we store the time in seconds and calculate ticks off of it
m_TimeOfDaySecs += (double)a_Dt / 1000.0;
@@ -2249,7 +2249,7 @@ void cWorld::BroadcastThunderbolt(int a_BlockX, int a_BlockY, int a_BlockZ, cons
void cWorld::BroadcastTimeUpdate(const cClientHandle * a_Exclude)
{
int TimeOfDay = m_TimeOfDay;
- if (!m_CycleDaylight)
+ if (!m_IsDaylightCycleEnabled)
{
TimeOfDay *= -1;
if (TimeOfDay == 0)