diff options
Diffstat (limited to 'crawl-ref/source/view.h')
-rw-r--r-- | crawl-ref/source/view.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |