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:
parent
4ba5cd580d
commit
c32da52104
8 changed files with 65 additions and 221 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue