diff options
| author | Perttu Ahola <celeron55@gmail.com> | 2010-11-29 14:03:40 +0200 |
|---|---|---|
| committer | Perttu Ahola <celeron55@gmail.com> | 2010-11-29 14:03:40 +0200 |
| commit | a18525a14eca664dc93be01e55b0efd1ce08b0fa (patch) | |
| tree | d5f4406004f1daf25b0d0b2cfb667dee4205f1d8 /src/map.cpp | |
| parent | aaafb5add0914f0b120d7400e9615f8ab03d6be2 (diff) | |
| download | minetest-a18525a14eca664dc93be01e55b0efd1ce08b0fa.tar.xz | |
fixed face updating slowness bug
Diffstat (limited to 'src/map.cpp')
| -rw-r--r-- | src/map.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp index 1fbaf0899..2b11b7a48 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -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; |
