aboutsummaryrefslogtreecommitdiff
path: root/src/environment.h
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2011-04-10 23:14:41 +0300
committerPerttu Ahola <celeron55@gmail.com>2011-04-10 23:14:41 +0300
commit9d5ccafbb0fd79940a904b1754e820a90681facb (patch)
tree58c05b24346aecdec2505892b39cc0bdab6ee7c5 /src/environment.h
parent26eb607a111a4a396283ffd55b90bd9c5fbaaf90 (diff)
downloadminetest-9d5ccafbb0fd79940a904b1754e820a90681facb.tar.gz
minetest-9d5ccafbb0fd79940a904b1754e820a90681facb.tar.bz2
minetest-9d5ccafbb0fd79940a904b1754e820a90681facb.zip
changed server to do object management at longer intervals (0.5s)
Diffstat (limited to 'src/environment.h')
-rw-r--r--src/environment.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/environment.h b/src/environment.h
index 85d2f668f..e82cea6ae 100644
--- a/src/environment.h
+++ b/src/environment.h
@@ -35,6 +35,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#include "player.h"
#include "map.h"
#include <ostream>
+#include "utility.h"
class Environment
{
@@ -154,6 +155,7 @@ private:
Queue<ActiveObjectMessage> m_active_object_messages;
float m_random_spawn_timer;
float m_send_recommended_timer;
+ IntervalLimiter m_object_management_interval;
};
#ifndef SERVER