1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-12 16:15:20 +02: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 paramat
parent 9a77397fbf
commit 34e8e0e5ce
2 changed files with 10 additions and 6 deletions

View File

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