mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Heightmaps: Fix uninitialised values in mgv5/mgv6. findGroundLevel: Return -MAP_GENERATION_LIMIT if surface not found
This commit is contained in:
parent
267c9f4cb4
commit
d463000595
5 changed files with 2 additions and 24 deletions
|
@ -64,8 +64,6 @@ MapgenV7::MapgenV7(int mapgenid, MapgenParams *params, EmergeManager *emerge)
|
|||
this->heightmap = new s16[csize.X * csize.Z];
|
||||
this->ridge_heightmap = new s16[csize.X * csize.Z];
|
||||
|
||||
initHeightMap(this->heightmap, csize.X * csize.Z);
|
||||
|
||||
MapgenV7Params *sp = (MapgenV7Params *)params->sparams;
|
||||
this->spflags = sp->spflags;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue