summaryrefslogtreecommitdiffstats
path: root/source/World.cpp
diff options
context:
space:
mode:
authormadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-12-17 15:23:17 +0100
committermadmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-12-17 15:23:17 +0100
commit756f20433a4f244d72c5f0ce76f37427948a7e8b (patch)
tree751749e01f9c1ec70d6265839128d55b5f863039 /source/World.cpp
parentcPiston refactoring to use cWorld::GetBlockTypeMeta() and proper types (diff)
downloadcuberite-756f20433a4f244d72c5f0ce76f37427948a7e8b.tar
cuberite-756f20433a4f244d72c5f0ce76f37427948a7e8b.tar.gz
cuberite-756f20433a4f244d72c5f0ce76f37427948a7e8b.tar.bz2
cuberite-756f20433a4f244d72c5f0ce76f37427948a7e8b.tar.lz
cuberite-756f20433a4f244d72c5f0ce76f37427948a7e8b.tar.xz
cuberite-756f20433a4f244d72c5f0ce76f37427948a7e8b.tar.zst
cuberite-756f20433a4f244d72c5f0ce76f37427948a7e8b.zip
Diffstat (limited to 'source/World.cpp')
-rw-r--r--source/World.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/World.cpp b/source/World.cpp
index 6bb78a16c..9fb5519f2 100644
--- a/source/World.cpp
+++ b/source/World.cpp
@@ -446,8 +446,8 @@ void cWorld::Tick(float a_Dt)
m_TimeOfDaySecs -= 1200.0;
}
- m_WorldAge = (Int64)(m_WorldAgeSecs / 20.0);
- m_TimeOfDay = (Int64)(m_TimeOfDaySecs / 20.0);
+ m_WorldAge = (Int64)(m_WorldAgeSecs * 20.0);
+ m_TimeOfDay = (Int64)(m_TimeOfDaySecs * 20.0);
// Broadcase time update every 40 ticks (2 seconds)
if (m_LastTimeUpdate < m_WorldAge - 40)