From 46733d74c81b5fccdb1e557cbceb8e977e876e47 Mon Sep 17 00:00:00 2001 From: eathenabot Date: Sun, 25 Dec 2011 10:14:42 +0000 Subject: * Merged changes up to eAthena 15049. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15264 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/unit.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/map/unit.c') diff --git a/src/map/unit.c b/src/map/unit.c index c76e9dc23..272fc9242 100644 --- a/src/map/unit.c +++ b/src/map/unit.c @@ -725,11 +725,10 @@ int unit_blown(struct block_list* bl, int dx, int dy, int count, int flag) } } } - else - {// could not knockback - count = 0; - } + + count = distance(dx, dy); } + return count; // return amount of knocked back cells } -- cgit v1.2.3-70-g09d2