summaryrefslogtreecommitdiff
path: root/src/mapgen.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2016-06-04 03:00:45 -0400
committerkwolekr <kwolekr@minetest.net>2016-06-04 03:00:45 -0400
commit109c7e334920f859068aeda31463f644e6b69895 (patch)
tree27284495f306372e348abbd6daebeefc34137ae7 /src/mapgen.h
parent8ed467d438634ffe45806a6a6a325bb00774d651 (diff)
downloadminetest-109c7e334920f859068aeda31463f644e6b69895.tar.gz
minetest-109c7e334920f859068aeda31463f644e6b69895.tar.bz2
minetest-109c7e334920f859068aeda31463f644e6b69895.zip
Biomes: Define and use biome_t for biome IDs
Diffstat (limited to 'src/mapgen.h')
-rw-r--r--src/mapgen.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mapgen.h b/src/mapgen.h
index 0342fd46e..f673007b5 100644
--- a/src/mapgen.h
+++ b/src/mapgen.h
@@ -36,6 +36,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
#define MG_LIGHT 0x10
#define MG_DECORATIONS 0x20
+typedef u8 biome_t; // copy from mg_biome.h to avoid an unnecessary include
+
class Settings;
class MMVManip;
class INodeDefManager;
@@ -161,7 +163,7 @@ public:
u32 blockseed;
s16 *heightmap;
- u8 *biomemap;
+ biome_t *biomemap;
v3s16 csize;
BiomeGen *biomegen;