summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/directn.h')
-rw-r--r--crawl-ref/source/directn.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/directn.h b/crawl-ref/source/directn.h
index 1759496612..6d71cfa0b5 100644
--- a/crawl-ref/source/directn.h
+++ b/crawl-ref/source/directn.h
@@ -241,6 +241,11 @@ inline coord_def grid2show(const coord_def &pos)
return (view2show(grid2view(pos)));
}
+inline coord_def show2grid(const coord_def &pos)
+{
+ return (view2grid(show2view(pos)));
+}
+
extern const struct coord_def Compass[8];
#endif