diff options
author | Perttu Ahola <celeron55@gmail.com> | 2010-12-26 13:51:56 +0200 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2010-12-26 13:51:56 +0200 |
commit | c32da52104cc6bbe8ed0bf1ba1a7874f015cb738 (patch) | |
tree | 844e08affaf47d1d03fb0f37eec006ae39b6e8c5 /src/mapblock.cpp | |
parent | 4ba5cd580d86710b54f4b523db4e8710fb56fdb6 (diff) | |
download | minetest-c32da52104cc6bbe8ed0bf1ba1a7874f015cb738.tar.gz minetest-c32da52104cc6bbe8ed0bf1ba1a7874f015cb738.tar.bz2 minetest-c32da52104cc6bbe8ed0bf1ba1a7874f015cb738.zip |
working good
Diffstat (limited to 'src/mapblock.cpp')
-rw-r--r-- | src/mapblock.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mapblock.cpp b/src/mapblock.cpp index 186256589..60efa2fcf 100644 --- a/src/mapblock.cpp +++ b/src/mapblock.cpp @@ -1021,11 +1021,11 @@ void MapBlock::stepObjects(float dtime, bool server, u32 daynight_ratio) m_spawn_timer -= dtime; if(m_spawn_timer <= 0.0) { - m_spawn_timer += rand() % 300; + m_spawn_timer += myrand() % 300; v2s16 p2d( - (rand()%(MAP_BLOCKSIZE-1))+0, - (rand()%(MAP_BLOCKSIZE-1))+0 + (myrand()%(MAP_BLOCKSIZE-1))+0, + (myrand()%(MAP_BLOCKSIZE-1))+0 ); s16 y = getGroundLevel(p2d); |