diff --git a/src/map/battle.c b/src/map/battle.c index 7910006e30..13e740e881 100644 --- a/src/map/battle.c +++ b/src/map/battle.c @@ -4540,7 +4540,8 @@ int battle_calc_return_damage(struct block_list* bl, struct block_list *src, int } if(sc->data[SC_DEATHBOUND] && skill_id != WS_CARTTERMINATION && !(src->type == BL_MOB && is_boss(src)) ) { uint8 dir = map_calc_dir(bl,src->x,src->y), - t_dir = unit_getdir(bl), rd1 = 0; + t_dir = unit_getdir(bl); + int rd1 = 0; if( distance_bl(src,bl) <= 0 || !map_check_dir(dir,t_dir) ) { rd1 = (int64)min(damage,status_get_max_hp(bl)) * sc->data[SC_DEATHBOUND]->val2 / 100; // Amplify damage. diff --git a/src/map/map.h b/src/map/map.h index a9d5eb0989..9d48dd4453 100644 --- a/src/map/map.h +++ b/src/map/map.h @@ -490,7 +490,8 @@ struct mapcell struct iwall_data { char wall_name[50]; - short m, x, y, size, dir; + short m, x, y, size; + int8 dir; bool shootable; }; diff --git a/src/map/script.c b/src/map/script.c index 630a52abd2..143be2f03f 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -14108,12 +14108,6 @@ BUILDIN_FUNC(sscanf){ *(buf_p-len+1) = '*'; } - // Passed more, than needed - if(arg