summaryrefslogtreecommitdiff
path: root/src/util.pkg
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2012-03-29 21:10:46 +0200
committerBardur Arantsson <bardur@scientician.net>2012-03-29 21:22:23 +0200
commit2d82b906749e7249b98b32a81c66a92e46c1cf10 (patch)
tree770ae89b97f9274b0f1068703c99224987f5b10c /src/util.pkg
parentaef0a9a6670ec219c3fc00e9cd9bc30458a5cab5 (diff)
Refactor: Move compass() and approximate_distance() from Lua to C
Diffstat (limited to 'src/util.pkg')
-rw-r--r--src/util.pkg6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util.pkg b/src/util.pkg
index b118f2b0..c6f97ebf 100644
--- a/src/util.pkg
+++ b/src/util.pkg
@@ -1514,6 +1514,12 @@ extern void quit(cptr str);
*/
extern s32b value_scale(int value, int vmax, int max, int min);
+/*
+ * compass, approximate_distance
+ */
+extern cptr compass(int y, int x, int y2, int x2);
+extern cptr approximate_distance(int y, int x, int y2, int x2);
+
/** @fn text_out_c(byte a, cptr str)
* @brief Output text to the screen (in color) or to a file depending on the
* selected hook.\n