mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
fixed the object update interval thingy
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user