1
0

Fixed world's a_Dt parameter getting time values in wrong units.

This commit is contained in:
madmaxoft 2013-08-14 22:36:34 +02:00
parent 259cf9f027
commit f93d13c419

View File

@ -211,7 +211,7 @@ void cWorld::cTickThread::Execute(void)
while (!m_ShouldTerminate)
{
clock_t Start = clock();
m_World.Tick((float)(LastTime - Start) / CLOCKS_PER_SEC);
m_World.Tick((float)(1000 * (Start - LastTime)) / CLOCKS_PER_SEC);
clock_t Now = clock();
if (Now - Start < ClocksPerTick)
{