Fixed world's a_Dt parameter getting time values in wrong units.
This commit is contained in:
parent
259cf9f027
commit
f93d13c419
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user