From a124171efd9ff0f38532b3a15a008705ad58ae38 Mon Sep 17 00:00:00 2001 From: haranp Date: Tue, 27 Jan 2009 08:46:50 +0000 Subject: Various cleanups. (I can't run tiles, but it compiled fine, so I hope I didn't introduce a subtle bug.) git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8811 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/view.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'crawl-ref/source/view.h') diff --git a/crawl-ref/source/view.h b/crawl-ref/source/view.h index 43977a523c..6f710dbb24 100644 --- a/crawl-ref/source/view.h +++ b/crawl-ref/source/view.h @@ -150,6 +150,9 @@ const feature_def &get_feature_def(dungeon_feature_type feat); void set_envmap_obj( const coord_def& where, int object ); unsigned get_envmap_char(int x, int y); +inline unsigned get_envmap_char(const coord_def& c) { + return get_envmap_char(c.x, c.y); +} bool inside_level_bounds(int x, int y); bool inside_level_bounds(const coord_def &p); int get_envmap_obj(int x, int y); -- cgit v1.2.3-54-g00ecf