diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-10-15 06:38:48 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-10-15 06:38:48 -0600 |
commit | d6dbf554bd866124b7c676187c351c3f67fd3906 (patch) | |
tree | 2301dbf20ee0994963ccebfd1c5f7fd73e08a200 /src/map/itemdb.c | |
parent | a11a55e91bd25f52eac46a99f4c906e773245046 (diff) | |
parent | 29844ce5e2cd043551b46c1cd7bf3a36e357e3c6 (diff) | |
download | tmwa-d6dbf554bd866124b7c676187c351c3f67fd3906.tar.gz tmwa-d6dbf554bd866124b7c676187c351c3f67fd3906.tar.bz2 tmwa-d6dbf554bd866124b7c676187c351c3f67fd3906.tar.xz tmwa-d6dbf554bd866124b7c676187c351c3f67fd3906.zip |
Merge remote branch 'taw/master'
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; } |