summaryrefslogtreecommitdiff
path: root/src/mg_ore.h
diff options
context:
space:
mode:
authorNer'zhul <nerzhul@users.noreply.github.com>2016-08-10 12:08:05 +0200
committerest31 <est31@users.noreply.github.com>2016-08-10 12:08:05 +0200
commit058a869b70072aba8baea47e359c45e82daaf152 (patch)
treeb0dd1820e89975d7172836d4861d9ab2ae2b472d /src/mg_ore.h
parent8df89db30e80eff2ebbf30f0331b8ab4906a410e (diff)
downloadminetest-058a869b70072aba8baea47e359c45e82daaf152.tar.gz
minetest-058a869b70072aba8baea47e359c45e82daaf152.tar.bz2
minetest-058a869b70072aba8baea47e359c45e82daaf152.zip
Permit usage of std::unordered_map & std::unorderered_set on c++11 compilers (#4430)
This fallback to std::map & std::set for older compilers Use UNORDERED_SET as an example in decoration and ore biome sets Use UNORDERED_MAP as an example in nameidmapping
Diffstat (limited to 'src/mg_ore.h')
-rw-r--r--src/mg_ore.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mg_ore.h b/src/mg_ore.h
index 2e065cee3..e95fdd330 100644
--- a/src/mg_ore.h
+++ b/src/mg_ore.h
@@ -20,6 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#ifndef MG_ORE_HEADER
#define MG_ORE_HEADER
+#include "util/cpp11_container.h"
#include "objdef.h"
#include "noise.h"
#include "nodedef.h"
@@ -64,7 +65,7 @@ public:
float nthresh; // threshold for noise at which an ore is placed
NoiseParams np; // noise for distribution of clusters (NULL for uniform scattering)
Noise *noise;
- std::set<u8> biomes;
+ UNORDERED_SET<u8> biomes;
Ore();
virtual ~Ore();