diff options
author | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-12-17 15:23:17 +0100 |
---|---|---|
committer | madmaxoft@gmail.com <madmaxoft@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6> | 2012-12-17 15:23:17 +0100 |
commit | 756f20433a4f244d72c5f0ce76f37427948a7e8b (patch) | |
tree | 751749e01f9c1ec70d6265839128d55b5f863039 /source/World.cpp | |
parent | cPiston refactoring to use cWorld::GetBlockTypeMeta() and proper types (diff) | |
download | cuberite-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.cpp | 4 |
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) |