- Small code cleanups. One should lower a bit function overhead when using mob_ai&32

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@5967 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
skotlex 2006-04-09 16:33:11 +00:00
parent d955a685c3
commit 0ed5d38cdd
3 changed files with 2 additions and 4 deletions

View File

@ -1296,8 +1296,6 @@ int atcommand_where(
} }
pl_sd = map_nick2sd(atcmd_player_name); pl_sd = map_nick2sd(atcmd_player_name);
pl_sd = map_nick2sd(atcmd_player_name);
if (pl_sd == NULL) if (pl_sd == NULL)
return -1; return -1;

View File

@ -1419,7 +1419,7 @@ static int mob_ai_sub_lazy(DBKey key,void * data,va_list app)
nullpo_retr(0, md); nullpo_retr(0, md);
nullpo_retr(0, app); nullpo_retr(0, app);
if(md->bl.type!=BL_MOB) if(md->bl.type!=BL_MOB || md->bl.prev == NULL)
return 0; return 0;
ap = va_arg(app, va_list); ap = va_arg(app, va_list);

View File

@ -6557,7 +6557,7 @@ struct skill_unit_group *skill_unitsetting( struct block_list *src, int skillid,
if (alive && battle_config.skill_wall_check) { if (alive && battle_config.skill_wall_check) {
//Check if there's a path between cell and center of casting. //Check if there's a path between cell and center of casting.
struct walkpath_data wpd; struct walkpath_data wpd;
if (path_search2(&wpd,src->m,ux,uy,x,y,0x30001)==-1) if (path_search2(&wpd,src->m,ux,uy,x,y,0x1)==-1)
alive = 0; alive = 0;
} }