diff options
author | paramat <mat.gregory@virginmedia.com> | 2016-02-21 13:28:34 +0000 |
---|---|---|
committer | paramat <mat.gregory@virginmedia.com> | 2016-02-23 23:51:29 +0000 |
commit | 8591713405419c434801c61ca59a9b6c019eb957 (patch) | |
tree | 48434b5d10f72ec8309e65fae1c32aae231daf5f /fonts/mono_dejavu_sans_4.xml | |
parent | 147425483a9e1afa2a2a4d9c0d5fa8b68d105644 (diff) | |
download | minetest-8591713405419c434801c61ca59a9b6c019eb957.tar.gz minetest-8591713405419c434801c61ca59a9b6c019eb957.tar.bz2 minetest-8591713405419c434801c61ca59a9b6c019eb957.zip |
Sheet Ore: Eliminate crash caused by PcgRandom range max < min
In the calculation of y_start,
when 'column height max' was large it caused
nmin.Y + max_height > nmax.Y - max_height
Now, in this situation y_start is set to the
midpoint between nmin.Y and nmax.Y
Limit y0 and y1 to between nmin.Y and nmax.Y,
otherwise index calculation, which has no checks for limits,
places them at unwanted locations in the voxelmanip
Diffstat (limited to 'fonts/mono_dejavu_sans_4.xml')
0 files changed, 0 insertions, 0 deletions