1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix mapgen using unitialised height map values

This commit is contained in:
Craig Robbins 2015-03-05 16:25:53 +10:00
parent 3d505b2b5f
commit daa1c30b35
5 changed files with 22 additions and 5 deletions

View file

@ -57,6 +57,8 @@ MapgenV6::MapgenV6(int mapgenid, MapgenParams *params, EmergeManager *emerge)
this->heightmap = new s16[csize.X * csize.Z];
initHeightMap(this->heightmap, csize.X * csize.Z);
MapgenV6Params *sp = (MapgenV6Params *)params->sparams;
this->spflags = sp->spflags;
this->freq_desert = sp->freq_desert;