1
0

TimeOfDay does not need to be an Int64

This commit is contained in:
Tycho
2014-09-08 19:07:45 +01:00
parent 4bdf9256f2
commit 2c945c8818
3 changed files with 6 additions and 6 deletions

View File

@@ -876,7 +876,7 @@ void cWorld::Tick(float a_Dt, int a_LastTickDurationMSec)
m_TimeOfDaySecs -= 1200.0;
}
m_TimeOfDay = (Int64)(m_TimeOfDaySecs * 20.0);
m_TimeOfDay = static_cast<int>(m_TimeOfDaySecs * 20.0);
// Updates the sky darkness based on current time of day
UpdateSkyDarkness();