From c32da52104cc6bbe8ed0bf1ba1a7874f015cb738 Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sun, 26 Dec 2010 13:51:56 +0200 Subject: working good --- src/mapblock.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mapblock.cpp') 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); -- cgit v1.2.3