diff options
author | Paramat <paramat@users.noreply.github.com> | 2020-05-20 22:16:14 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-20 22:16:14 +0100 |
commit | 42fcfb75e85523a2fa5d99a453c2fabc2c04c0f6 (patch) | |
tree | 5a76856ca96330263cce9fae1985172b671c8324 /src/mapgen/cavegen.h | |
parent | c47a680db7f3c2f241cc444a1257607492872412 (diff) | |
download | minetest-42fcfb75e85523a2fa5d99a453c2fabc2c04c0f6.tar.gz minetest-42fcfb75e85523a2fa5d99a453c2fabc2c04c0f6.tar.bz2 minetest-42fcfb75e85523a2fa5d99a453c2fabc2c04c0f6.zip |
Allow more than 255 biomes, document new maximum (#9855)
Change biomemap data type from u8 to u16.
New technical (not practical) maximum is 65535 biomes.
Diffstat (limited to 'src/mapgen/cavegen.h')
-rw-r--r-- | src/mapgen/cavegen.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/mapgen/cavegen.h b/src/mapgen/cavegen.h index ff09f9423..d678d365b 100644 --- a/src/mapgen/cavegen.h +++ b/src/mapgen/cavegen.h @@ -1,7 +1,7 @@ /* Minetest -Copyright (C) 2010-2018 kwolekr, Ryan Kwolek <kwolekr@minetest.net> -Copyright (C) 2015-2018 paramat +Copyright (C) 2015-2020 paramat +Copyright (C) 2010-2016 kwolekr, Ryan Kwolek <kwolekr@minetest.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by @@ -22,6 +22,8 @@ with this program; if not, write to the Free Software Foundation, Inc., #define VMANIP_FLAG_CAVE VOXELFLAG_CHECKED1 +typedef u16 biome_t; // copy from mg_biome.h to avoid an unnecessary include + class GenerateNotifier; /* @@ -44,7 +46,7 @@ public: NoiseParams *np_cave2, s32 seed, float cave_width); ~CavesNoiseIntersection(); - void generateCaves(MMVManip *vm, v3s16 nmin, v3s16 nmax, u8 *biomemap); + void generateCaves(MMVManip *vm, v3s16 nmin, v3s16 nmax, biome_t *biomemap); private: const NodeDefManager *m_ndef; |