summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/view.h
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-27 08:46:50 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-27 08:46:50 +0000
commita124171efd9ff0f38532b3a15a008705ad58ae38 (patch)
tree215f660375bc6f0a6624939bd8dfc0b7da645030 /crawl-ref/source/view.h
parent1332e506af6d32843dd48acac1d663074ec86553 (diff)
downloadcrawl-ref-a124171efd9ff0f38532b3a15a008705ad58ae38.tar.gz
crawl-ref-a124171efd9ff0f38532b3a15a008705ad58ae38.zip
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
Diffstat (limited to 'crawl-ref/source/view.h')
-rw-r--r--crawl-ref/source/view.h3
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);