mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-18 10:45:27 +02: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:
@@ -20,7 +20,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
#ifndef MG_DECORATION_HEADER
|
||||
#define MG_DECORATION_HEADER
|
||||
|
||||
#include <set>
|
||||
#include "util/cpp11_container.h"
|
||||
#include "objdef.h"
|
||||
#include "noise.h"
|
||||
#include "nodedef.h"
|
||||
@@ -83,7 +83,7 @@ public:
|
||||
float fill_ratio;
|
||||
NoiseParams np;
|
||||
|
||||
std::set<u8> biomes;
|
||||
UNORDERED_SET<u8> biomes;
|
||||
//std::list<CutoffData> cutoffs;
|
||||
//Mutex cutoff_mutex;
|
||||
};
|
||||
|
Reference in New Issue
Block a user