diff options
author | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-25 03:19:47 +0000 |
---|---|---|
committer | skotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-25 03:19:47 +0000 |
commit | 509650b5b1c3c5137b50e4b82dbc1f2a6ed3b141 (patch) | |
tree | 727bda6147c7a7ebd8762abb750b961b98689fd9 /src/map/unit.c | |
parent | 71402dcc1b56c68896a043a66faec201826ac289 (diff) | |
download | hercules-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/unit.c')
-rw-r--r-- | src/map/unit.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c index ad76f5145..fc6c5c578 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -420,7 +420,6 @@ int unit_warp(struct block_list *bl,int m,int x,int y,int type) if (x<0 || y<0)
{ //Random map position.
-
if (!map_search_freecell(NULL, m, &x, &y, -1, -1, 1)) {
if(battle_config.error_log)
ShowWarning("unit_warp failed. Unit Id:%d/Type:%d, target position map %d (%s) at [%d,%d]\n", bl->id, bl->type, m, map[m].name, x, y);
|