summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/map/unit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 0225b4b87..0b6e098a9 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -686,7 +686,11 @@ int unit_blown(struct block_list* bl, int dx, int dy, int count, int flag)
if(dx || dy)
{
map_foreachinmovearea(clif_outsight, bl, AREA_SIZE, dx, dy, bl->type == BL_PC ? BL_ALL : BL_PC, bl);
-
+
+ count = distance_xy(bl->x,bl->y,dx,dy);
+ if( count < 0 )
+ count = -count;
+
if(su)
{
skill_unit_move_unit_group(su->group, bl->m, dx, dy);