diff options
author | Loic Blot <loic.blot@unix-experience.fr> | 2016-10-06 19:20:12 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2016-10-06 22:37:26 +0200 |
commit | 155288ee981c70f505526347cb2bcda4df1c8e6b (patch) | |
tree | 582095bc50cb60d3dedb9f6a08e908324a3da365 /src/util/numeric.cpp | |
parent | b66a5d2f8842cc84ae44257dc0ead255e5b0538f (diff) | |
download | minetest-155288ee981c70f505526347cb2bcda4df1c8e6b.tar.gz minetest-155288ee981c70f505526347cb2bcda4df1c8e6b.tar.bz2 minetest-155288ee981c70f505526347cb2bcda4df1c8e6b.zip |
use unordered containers where possible (patch 4 on X)
Also remove some unused parameters/functions
Diffstat (limited to 'src/util/numeric.cpp')
-rw-r--r-- | src/util/numeric.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/numeric.cpp b/src/util/numeric.cpp index 42ebd9022..6a7bfcac9 100644 --- a/src/util/numeric.cpp +++ b/src/util/numeric.cpp @@ -27,7 +27,7 @@ with this program; if not, write to the Free Software Foundation, Inc., #include <string.h> #include <iostream> -std::map<u16, std::vector<v3s16> > FacePositionCache::m_cache; +UNORDERED_MAP<u16, std::vector<v3s16> > FacePositionCache::m_cache; Mutex FacePositionCache::m_cache_mutex; // Calculate the borders of a "d-radius" cube // TODO: Make it work without mutex and data races, probably thread-local |