summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-25 19:32:51 +0000
committerbrianluau <brianluau@54d463be-8e91-2dee-dedb-b68131a5f0ec>2011-12-25 19:32:51 +0000
commite3883970149cfbb3a1e89b99a32dfd5de6fbdfd0 (patch)
treea4ffae3b5bc59ef93a8af6c6a55ad10184a2da24
parent10921d4dbfbe634087c9711971455b7d9281ed31 (diff)
downloadhercules-e3883970149cfbb3a1e89b99a32dfd5de6fbdfd0.tar.gz
hercules-e3883970149cfbb3a1e89b99a32dfd5de6fbdfd0.tar.bz2
hercules-e3883970149cfbb3a1e89b99a32dfd5de6fbdfd0.tar.xz
hercules-e3883970149cfbb3a1e89b99a32dfd5de6fbdfd0.zip
- Full revert of r15116.
Using the fix for bugreport:4985 in r15264 instead (ea:15049). git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15274 54d463be-8e91-2dee-dedb-b68131a5f0ec
-rw-r--r--src/map/unit.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 272fc9242..017932990 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -688,11 +688,7 @@ 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);