1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

fixed the object update interval thingy

This commit is contained in:
Perttu Ahola 2011-04-10 23:29:36 +03:00
parent 9d5ccafbb0
commit bb39795ab2
3 changed files with 8 additions and 7 deletions

View file

@ -2033,12 +2033,9 @@ public:
{
m_accumulator += dtime;
if(m_accumulator < wanted_interval)
{
dtime = 0;
return true;
}
return false;
m_accumulator -= wanted_interval;
return false;
return true;
}
protected:
float m_accumulator;