Fixed time calculation in cWorld::Tick()
Should fix chunk saving bug in http://forum.mc-server.org/showthread.php?tid=434&pid=5663#pid5663 git-svn-id: http://mc-server.googlecode.com/svn/trunk@1079 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
fc9bbbbbf6
commit
756f20433a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user