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:
parent
aaafb5add0
commit
a18525a14e
7 changed files with 127 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue