summaryrefslogtreecommitdiff
path: root/src/map/map.c
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-25 03:19:47 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-25 03:19:47 +0000
commit509650b5b1c3c5137b50e4b82dbc1f2a6ed3b141 (patch)
tree727bda6147c7a7ebd8762abb750b961b98689fd9 /src/map/map.c
parent71402dcc1b56c68896a043a66faec201826ac289 (diff)
downloadhercules-509650b5b1c3c5137b50e4b82dbc1f2a6ed3b141.tar.gz
hercules-509650b5b1c3c5137b50e4b82dbc1f2a6ed3b141.tar.bz2
hercules-509650b5b1c3c5137b50e4b82dbc1f2a6ed3b141.tar.xz
hercules-509650b5b1c3c5137b50e4b82dbc1f2a6ed3b141.zip
- Incremented the number of iterations to find a random stop to 100 as 50 seems to no be enough for certain maps.
- Fixed iteminfo only displaying first result when there were many. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5744 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/map.c')
-rw-r--r--src/map/map.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/map.c b/src/map/map.c
index 030ea4d02..7a37f6c43 100644
--- a/src/map/map.c
+++ b/src/map/map.c
@@ -1407,7 +1407,7 @@ int map_search_freecell(struct block_list *src, int m, int *x,int *y, int rx, in
tries = rx2*ry2;
if (tries > 50) tries = 50;
} else
- tries = 50;
+ tries = 100;
while(tries--) {
*x = (rx >= 0)?(rand()%rx2-rx+bx):(rand()%(map[m].xs-2)+1);