mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
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
This commit is contained in:
parent
8df89db30e
commit
058a869b70
8 changed files with 54 additions and 18 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue