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:
@@ -106,6 +106,8 @@ private:
|
||||
Noise *noise_float_base_height;
|
||||
Noise *noise_mountain;
|
||||
Noise *noise_ridge;
|
||||
|
||||
float float_mount_height_lim;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user