浏览代码

- Removed npc walking-related commands dependency to 'max_walk_path'. Fixes bugreport:7565 (thanks Aerie).

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@17278 54d463be-8e91-2dee-dedb-b68131a5f0ec
momacabu 12 年之前
父节点
当前提交
eeea763a5a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/map/unit.c

+ 1 - 1
src/map/unit.c

@@ -329,7 +329,7 @@ int unit_walktoxy( struct block_list *bl, short x, short y, int flag)
 		&& wpd.path_len > 14 ) // Official number of walkable cells is 14 if and only if there is an obstacle between. [malufett]
 		return 0;
 #endif
-	if( battle_config.max_walk_path < wpd.path_len )
+	if( (battle_config.max_walk_path < wpd.path_len) && (bl->type != BL_NPC) )
 		return 0;
 
 	if (flag&4 && DIFF_TICK(ud->canmove_tick, gettick()) > 0 &&