diff options
author | MadCamel <madcamel@gmail.com> | 2009-09-16 07:49:36 -0400 |
---|---|---|
committer | MadCamel <madcamel@gmail.com> | 2009-09-16 07:49:36 -0400 |
commit | 03149635727f16b45e99fd5f2f3647d6c4cb749f (patch) | |
tree | 4b9f06028bd79a152e485629e175b76447d33b98 /src/map/itemdb.c | |
parent | d7b6afc444c1fac508dd5cc4bdf7e4dfa57e50c2 (diff) | |
download | tmwa-03149635727f16b45e99fd5f2f3647d6c4cb749f.tar.gz tmwa-03149635727f16b45e99fd5f2f3647d6c4cb749f.tar.bz2 tmwa-03149635727f16b45e99fd5f2f3647d6c4cb749f.tar.xz tmwa-03149635727f16b45e99fd5f2f3647d6c4cb749f.zip |
Found and replaced more calls to rand()
Diffstat (limited to 'src/map/itemdb.c')
-rw-r--r-- | src/map/itemdb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/map/itemdb.c b/src/map/itemdb.c index d9cb429..3b49b50 100644 --- a/src/map/itemdb.c +++ b/src/map/itemdb.c @@ -111,8 +111,8 @@ int itemdb_searchrandomid(int flags) if(count > 0) { for(i=0;i<1000;i++) { - index = rand()%count; - if( rand()%1000000 < list[index].per) { + index = MRAND(count); + if( MRAND(1000000) < list[index].per) { nameid = list[index].nameid; break; } |