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:
parent
9d5ccafbb0
commit
bb39795ab2
3 changed files with 8 additions and 7 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue