aboutsummaryrefslogtreecommitdiff
path: root/src/network
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2016-10-06 08:48:20 +0200
committersfan5 <sfan5@live.de>2016-10-06 12:33:35 +0200
commit667975fe3adee935a3f4d2b1a421a295771c664d (patch)
tree9cbc5505b0aa528eabe103e49cbe0ff205f87527 /src/network
parent997fc59c7e29a4d2b3f19df9972f3a7d4ac894e3 (diff)
downloadminetest-667975fe3adee935a3f4d2b1a421a295771c664d.tar.gz
minetest-667975fe3adee935a3f4d2b1a421a295771c664d.tar.bz2
minetest-667975fe3adee935a3f4d2b1a421a295771c664d.zip
Use more unordered_maps to improve performance in c++11 builds
Diffstat (limited to 'src/network')
-rw-r--r--src/network/clientpackethandler.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/network/clientpackethandler.cpp b/src/network/clientpackethandler.cpp
index 48c573da5..6d42edd7d 100644
--- a/src/network/clientpackethandler.cpp
+++ b/src/network/clientpackethandler.cpp
@@ -812,9 +812,7 @@ void Client::handleCommand_StopSound(NetworkPacket* pkt)
*pkt >> server_id;
- std::map<s32, int>::iterator i =
- m_sounds_server_to_client.find(server_id);
-
+ UNORDERED_MAP<s32, int>::iterator i = m_sounds_server_to_client.find(server_id);
if (i != m_sounds_server_to_client.end()) {
int client_id = i->second;
m_sound->stopSound(client_id);