diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2015-04-21 23:26:34 +0200 |
---|---|---|
committer | Loic Blot <loic.blot@unix-experience.fr> | 2015-04-21 23:28:13 +0200 |
commit | 972d17baea81ffe6d508b291ef97207a4822e1da (patch) | |
tree | a764693c186e29212f4357a9802958685c5b5767 /src/environment.h | |
parent | 436cb468e9a832d15009d527d80c8dfe86bb2772 (diff) | |
download | minetest-972d17baea81ffe6d508b291ef97207a4822e1da.tar.gz minetest-972d17baea81ffe6d508b291ef97207a4822e1da.tar.bz2 minetest-972d17baea81ffe6d508b291ef97207a4822e1da.zip |
m_active_object_messages is used like a queue. Use std::queue instead of std::list. Also rename to m_active_object_messages_queue
Diffstat (limited to 'src/environment.h')
-rw-r--r-- | src/environment.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/environment.h b/src/environment.h index 415a9ec31..e0d8d4328 100644 --- a/src/environment.h +++ b/src/environment.h @@ -33,6 +33,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <set> #include <list> #include <map> +#include <queue> #include "irr_v3d.h" #include "activeobject.h" #include "util/numeric.h" @@ -378,7 +379,7 @@ private: // Active object list std::map<u16, ServerActiveObject*> m_active_objects; // Outgoing network message buffer for active objects - std::list<ActiveObjectMessage> m_active_object_messages; + std::queue<ActiveObjectMessage> m_active_object_messages_queue; // Some timers float m_send_recommended_timer; IntervalLimiter m_object_management_interval; |