Mgv7: Avoid divide-by-zero errors
authorparamat <paramat@users.noreply.github.com>
Fri, 23 Jun 2017 20:49:26 +0000 (21:49 +0100)
committerSmallJoker <mk939@ymail.com>
Sun, 3 Jun 2018 15:31:59 +0000 (17:31 +0200)
commit6e0557e20c7347f2196c8c76f84d647f8699ec78
treea9432d18b010c1226e4fa9441f841d7da5a4da46
parent0c91c65a1147049a0a97ef3120a025401f60c5d7
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