From 55d5736219e39edcf1976aa6ac909a64e7104cf1 Mon Sep 17 00:00:00 2001 From: haranp Date: Wed, 4 Feb 2009 17:32:00 +0000 Subject: Move a bit more things to use coord_defs and iterators instead of x,y. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8892 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/view.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'crawl-ref/source/view.h') 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); -- cgit v1.2.3-54-g00ecf