summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorMatheus Macabu <mkbu95@gmail.com>2013-06-14 12:41:13 -0300
committerMatheus Macabu <mkbu95@gmail.com>2013-06-14 12:41:13 -0300
commitf22fada707db4e1e186d331f73fcdbbbc17ebb08 (patch)
tree8f8fe92e1c5436295a373983734be37138a5381d /src/map/unit.c
parent833f18c281505e25dee445061e72edc6decba6ee (diff)
downloadhercules-f22fada707db4e1e186d331f73fcdbbbc17ebb08.tar.gz
hercules-f22fada707db4e1e186d331f73fcdbbbc17ebb08.tar.bz2
hercules-f22fada707db4e1e186d331f73fcdbbbc17ebb08.tar.xz
hercules-f22fada707db4e1e186d331f73fcdbbbc17ebb08.zip
Finalizing fix for #7339.
Also added proper support for party booking on 2012-04-10Ragexe (thanks to bgamez23). Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
Diffstat (limited to 'src/map/unit.c')
-rw-r--r--src/map/unit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 7b270adc7..e5637e42d 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -327,7 +327,7 @@ int unit_walktoxy( struct block_list *bl, short x, short y, int flag)
path_search(&wpd, bl->m, bl->x, bl->y, x, y, flag&1, CELL_CHKNOPASS); // Count walk path cells
#ifdef OFFICIAL_WALKPATH
if( !path_search_long(NULL, bl->m, bl->x, bl->y, x, y, CELL_CHKNOPASS) // Check if there is an obstacle between
- && (wpd.path_len > 14) // Official number of walkable cells is 14 if and only if there is an obstacle between. [malufett]
+ && (wpd.path_len > (battle_config.max_walk_path/17)*14) // Official number of walkable cells is 14 if and only if there is an obstacle between. [malufett]
&& (bl->type != BL_NPC) ) // If type is a NPC, please disregard.
return 0;
#endif