summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.h
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/view.h')
-rw-r--r--crawl-ref/source/view.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crawl-ref/source/view.h b/crawl-ref/source/view.h
index c544f6024b..6335c15a8c 100644
--- a/crawl-ref/source/view.h
+++ b/crawl-ref/source/view.h
@@ -135,6 +135,10 @@ bool is_sanctuary( const coord_def& p );
bool is_bloodcovered( const coord_def& p );
bool is_envmap_detected_item(int x, int y);
+inline bool is_envmap_detected_item(const coord_def& c) {
+ return is_envmap_detected_item(c.x, c.y);
+}
+
bool is_envmap_detected_mons(int x, int y);
inline bool is_envmap_detected_mons(const coord_def& c) {
return is_envmap_detected_mons(c.x, c.y);