summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-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)