1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-11 17:51:04 +00:00

working good

This commit is contained in:
Perttu Ahola 2010-12-26 13:51:56 +02:00
parent 4ba5cd580d
commit c32da52104
8 changed files with 65 additions and 221 deletions

View file

@ -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);