diff options
author | Perttu Ahola <celeron55@gmail.com> | 2011-04-10 23:29:36 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2011-04-10 23:29:36 +0300 |
commit | bb39795ab223ffe815d88ec0d0f9dc9a993bef67 (patch) | |
tree | ff69273a655906fb89bc8f4bb67613bc5fb82331 /src/utility.h | |
parent | 9d5ccafbb0fd79940a904b1754e820a90681facb (diff) | |
download | minetest-bb39795ab223ffe815d88ec0d0f9dc9a993bef67.tar.gz minetest-bb39795ab223ffe815d88ec0d0f9dc9a993bef67.tar.bz2 minetest-bb39795ab223ffe815d88ec0d0f9dc9a993bef67.zip |
fixed the object update interval thingy
Diffstat (limited to 'src/utility.h')
-rw-r--r-- | src/utility.h | 7 |
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; |