summaryrefslogtreecommitdiffstats
path: root/src/World.cpp
diff options
context:
space:
mode:
authorHowaner <franzi.moos@googlemail.com>2014-08-11 00:20:28 +0200
committerHowaner <franzi.moos@googlemail.com>2014-08-11 00:20:28 +0200
commit47c928cab7d1ff73e50925bc7ef50586b6ec9821 (patch)
treee267ba521071e0d355eb6ed02a06791fd6e4552f /src/World.cpp
parentAdded a comment and simplified code. (diff)
downloadcuberite-47c928cab7d1ff73e50925bc7ef50586b6ec9821.tar
cuberite-47c928cab7d1ff73e50925bc7ef50586b6ec9821.tar.gz
cuberite-47c928cab7d1ff73e50925bc7ef50586b6ec9821.tar.bz2
cuberite-47c928cab7d1ff73e50925bc7ef50586b6ec9821.tar.lz
cuberite-47c928cab7d1ff73e50925bc7ef50586b6ec9821.tar.xz
cuberite-47c928cab7d1ff73e50925bc7ef50586b6ec9821.tar.zst
cuberite-47c928cab7d1ff73e50925bc7ef50586b6ec9821.zip
Diffstat (limited to '')
-rw-r--r--src/World.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/World.cpp b/src/World.cpp
index dcca0519e..5298f3b03 100644
--- a/src/World.cpp
+++ b/src/World.cpp
@@ -2250,13 +2250,6 @@ 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_IsDaylightCycleEnabled)
- {
- // When writing a "-" before the number the client ignores it but it will stop the client-side time expiration.
- TimeOfDay = std::min(-TimeOfDay, -1);
- }
-
cCSLock Lock(m_CSPlayers);
for (cPlayerList::iterator itr = m_Players.begin(); itr != m_Players.end(); ++itr)
{
@@ -2265,7 +2258,7 @@ void cWorld::BroadcastTimeUpdate(const cClientHandle * a_Exclude)
{
continue;
}
- ch->SendTimeUpdate(m_WorldAge, TimeOfDay);
+ ch->SendTimeUpdate(m_WorldAge, m_TimeOfDay, m_IsDaylightCycleEnabled);
}
}