diff options
author | Paramat <paramat@users.noreply.github.com> | 2018-06-26 19:35:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-26 19:35:23 +0100 |
commit | 93661ca2122639b000dc3860700e5c61ebbc6497 (patch) | |
tree | d64c257104325daa15c879a831fc216e40542693 /src/unittest/test_eventmanager.cpp | |
parent | b589352e79de438590d94f98783dbf1601454d91 (diff) | |
download | minetest-93661ca2122639b000dc3860700e5c61ebbc6497.tar.gz minetest-93661ca2122639b000dc3860700e5c61ebbc6497.tar.bz2 minetest-93661ca2122639b000dc3860700e5c61ebbc6497.zip |
Cavegen: Fix errors when getting biome outside mapchunk (#7480)
Some cave segments are outside the mapchunk.
Previously, biome was being calculated by a function that uses the noise
maps. Points outside the mapchunk resulted in incorrect noise map indexes
that were sometimes outside the noise map size, causing a crash.
Use either noise maps or point noise calculations depending on point
location.
Diffstat (limited to 'src/unittest/test_eventmanager.cpp')
0 files changed, 0 insertions, 0 deletions