1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-27 22:05:17 +01:00

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.
This commit is contained in:
paramat
2017-06-23 21:49:26 +01:00
committed by SmallJoker
parent 0c91c65a11
commit 6e0557e20c
2 changed files with 10 additions and 6 deletions

View File

@@ -103,6 +103,8 @@ private:
Noise *noise_float_base_height;
Noise *noise_mountain;
Noise *noise_ridge;
float float_mount_height_lim;
};
#endif