diff options
author | Perttu Ahola <celeron55@gmail.com> | 2010-12-24 11:44:26 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2010-12-24 11:44:26 +0200 |
commit | 705de63dcdfe78157234e1b65652d5c2f762dbd4 (patch) | |
tree | 6aeac4160d1034e7f8cf9daa4232a741c367774d /src/map.cpp | |
parent | 1611f00865031e5187bd9b51d2b2e9f8307af62e (diff) | |
download | hax-minetest-server-705de63dcdfe78157234e1b65652d5c2f762dbd4.tar.gz hax-minetest-server-705de63dcdfe78157234e1b65652d5c2f762dbd4.zip |
ProgressBarTextureMod
Diffstat (limited to 'src/map.cpp')
-rw-r--r-- | src/map.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/map.cpp b/src/map.cpp index acaf8436a..fe94d6e97 100644 --- a/src/map.cpp +++ b/src/map.cpp @@ -1991,7 +1991,9 @@ MapBlock * ServerMap::emergeBlock( coal_rareness = 1; if(rand()%coal_rareness == 0) { - for(s16 i=0; i<coal_amount; i++) + u16 a = rand() % 16; + u16 amount = coal_amount * a*a*a / 1000; + for(s16 i=0; i<amount; i++) { v3s16 cp( (rand()%(MAP_BLOCKSIZE-2))+1, |