From 3c9a4b95c3612e0925baf1b116460e0c07cd6d2f Mon Sep 17 00:00:00 2001 From: skotlex Date: Mon, 12 Jun 2006 21:14:28 +0000 Subject: - Fixed npc_checknear's distance check returning the opposite of what it should (false when the range is correct and viceversa) - SL_STIN/SL_STUN have dex-reducable casting times now. - Added a warning on item loading when an item is of equippable type but has no equippable position. - Turning an alliance to an opposition won't work now during WoE - Slaves can summon other mobs now. The only ones who can't do this are player summoned mobs. - Merged the following functions for faster processing of items: clif_storageitemlist + clif_storageequiplist = clif_storagelist clif_guildstorageitemlist + clif_guildstorageequiplist = clif_guildstoragelist clif_itemlist + clif_equiplist = clif_inventorylist - Increased max knockback value support to 25. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@7109 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/path.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/path.c') diff --git a/src/map/path.c b/src/map/path.c index 1255f655d..8db44feb6 100644 --- a/src/map/path.c +++ b/src/map/path.c @@ -203,10 +203,10 @@ int path_blownpos(int m,int x0,int y0,int dx,int dy,int count) return -1; md=&map[m]; - if(count>15){ // 最大10マスに制限 + if(count>25){ //Cap to prevent too much processing...? if(battle_config.error_log) ShowWarning("path_blownpos: count too many %d !\n",count); - count=15; + count=25; } if(dx>1 || dx<-1 || dy>1 || dy<-1){ if(battle_config.error_log) @@ -215,7 +215,7 @@ int path_blownpos(int m,int x0,int y0,int dx,int dy,int count) dy=(dy>=0)?1:((dy<0)?-1:0); } - while( (count--)>0 && (dx!=0 || dy!=0) ){ + while( (count--)>0 && (dx || dy) ){ if( !can_move(md,x0,y0,x0+dx,y0+dy,0) ){ int fx=(dx!=0 && can_move(md,x0,y0,x0+dx,y0,0)); int fy=(dy!=0 && can_move(md,x0,y0,x0,y0+dy,0)); -- cgit v1.2.3-70-g09d2