summaryrefslogtreecommitdiff
path: root/src/environment.h
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-03-05 10:43:08 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-03-05 10:44:48 +0100
commit365e4ae0faee79ff7b62396f27667e8315ba94d4 (patch)
tree80b4ef80a339433562e23cd47980f4aae87bf938 /src/environment.h
parentb214cde5b4a833e1826ec6850b95bf1938c8b0a0 (diff)
downloadminetest-365e4ae0faee79ff7b62396f27667e8315ba94d4.tar.gz
minetest-365e4ae0faee79ff7b62396f27667e8315ba94d4.tar.bz2
minetest-365e4ae0faee79ff7b62396f27667e8315ba94d4.zip
Performance improvement: Use std::list instead of std::vector for request_media, Server::getModNames, Environment::m_simple_objects.
* Also remove unused Server::m_modspaths
Diffstat (limited to 'src/environment.h')
-rw-r--r--src/environment.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/environment.h b/src/environment.h
index 386289307..c9c374413 100644
--- a/src/environment.h
+++ b/src/environment.h
@@ -521,7 +521,7 @@ private:
IGameDef *m_gamedef;
IrrlichtDevice *m_irr;
std::map<u16, ClientActiveObject*> m_active_objects;
- std::list<ClientSimpleObject*> m_simple_objects;
+ std::vector<ClientSimpleObject*> m_simple_objects;
std::list<ClientEnvEvent> m_client_event_queue;
IntervalLimiter m_active_object_light_update_interval;
IntervalLimiter m_lava_hurt_interval;