]> git.lizzy.rs Git - minetest.git/commit
Mgv7: Avoid divide-by-zero errors
authorparamat <paramat@users.noreply.github.com>
Fri, 23 Jun 2017 20:49:26 +0000 (21:49 +0100)
committerparamat <mat.gregory@virginmedia.com>
Sat, 24 Jun 2017 00:48:29 +0000 (01:48 +0100)
commit34e8e0e5ce2887391f55d5d7285088ec2c0f5761
treecbdb790628c8ac6d0311a20cf3e120b03c00a9fe
parent9a77397fbfb95a0b45ed33831291259626968500
Mgv7: Avoid divide-by-zero errors

Some settings of paramters can cause mgv7 variables to be -inf, nan or -nan.
This can cause massive vertical columns of water to appear above sea level.
src/mapgen_v7.cpp
src/mapgen_v7.h