From 03149635727f16b45e99fd5f2f3647d6c4cb749f Mon Sep 17 00:00:00 2001 From: MadCamel Date: Wed, 16 Sep 2009 07:49:36 -0400 Subject: Found and replaced more calls to rand() --- src/map/mob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/map/mob.c') diff --git a/src/map/mob.c b/src/map/mob.c index f04ff28..cd74caa 100644 --- a/src/map/mob.c +++ b/src/map/mob.c @@ -1651,7 +1651,7 @@ static int mob_randomwalk(struct mob_data *md,int tick) int i,x,y,c,d=12-md->move_fail_count; if(d<5) d=5; for(i=0;ibl.x+r%(d*2+1)-d; y=md->bl.y+r/(d*2+1)%(d*2+1)-d; if((c=map_getcell(md->bl.m,x,y))!=1 && c!=5 && mob_walktoxy(md,x,y,1)==0){ -- cgit v1.2.3-60-g2f50