1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

fixed face updating slowness bug

This commit is contained in:
Perttu Ahola 2010-11-29 14:03:40 +02:00
parent aaafb5add0
commit a18525a14e
7 changed files with 127 additions and 8 deletions

View file

@ -1521,7 +1521,7 @@ MapSector * ServerMap::emergeSector(v2s16 p2d)
Add ravine (randomly)
*/
{
if(rand()%10 == 0)
if(rand()%(s32)(10.0 * m_params.ravines_amount) == 0)
{
s16 s = 6;
s16 x = rand()%(MAP_BLOCKSIZE-s*2-1)+s;