aboutsummaryrefslogtreecommitdiff
path: root/src/utility.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-10 23:29:36 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-10 23:29:36 +0300
commitbb39795ab223ffe815d88ec0d0f9dc9a993bef67 (patch)
treeff69273a655906fb89bc8f4bb67613bc5fb82331 /src/utility.h
parent9d5ccafbb0fd79940a904b1754e820a90681facb (diff)
downloadhax-minetest-server-bb39795ab223ffe815d88ec0d0f9dc9a993bef67.tar.gz
hax-minetest-server-bb39795ab223ffe815d88ec0d0f9dc9a993bef67.zip
fixed the object update interval thingy
Diffstat (limited to '')
-rw-r--r--src/utility.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/utility.h b/src/utility.h
index 19946354c..50bbe1496 100644
--- a/src/utility.h
+++ b/src/utility.h
@@ -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;