summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-26 17:18:57 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-12-26 17:18:57 +0000
commit1e452a27de8de22d933f5b37c407aa3980948a66 (patch)
treef9403acedd93c5d4b5ea6b0d7eba5e30cb084cad /src/map/script.c
parent8cd1c4cafcf7aa6b49d26a4c81cb6ed6962b3c12 (diff)
downloadhercules-1e452a27de8de22d933f5b37c407aa3980948a66.tar.gz
hercules-1e452a27de8de22d933f5b37c407aa3980948a66.tar.bz2
hercules-1e452a27de8de22d933f5b37c407aa3980948a66.tar.xz
hercules-1e452a27de8de22d933f5b37c407aa3980948a66.zip
Moved distance-related functions to path.c/h
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@11981 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 249d4c321..b0621aa40 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -17,6 +17,7 @@
#include "../common/utils.h"
#include "map.h"
+#include "path.h"
#include "clif.h"
#include "chrif.h"
#include "itemdb.h"
@@ -11594,7 +11595,7 @@ BUILDIN_FUNC(distance)
x1 = script_getnum(st,4);
y1 = script_getnum(st,5);
- script_pushint(st,distance(x0-x1, y0-y1));
+ script_pushint(st,distance_xy(x0,y0,x1,y1));
return 0;
}