diff options
-rw-r--r-- | crawl-ref/source/map_knowledge.cc | 5 | ||||
-rw-r--r-- | crawl-ref/source/map_knowledge.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/map_knowledge.cc b/crawl-ref/source/map_knowledge.cc index 578ca2f2b9..023f874846 100644 --- a/crawl-ref/source/map_knowledge.cc +++ b/crawl-ref/source/map_knowledge.cc @@ -37,6 +37,11 @@ unsigned map_cell::glyph() const return (mons_char(object.mons)); } +dungeon_feature_type map_cell::feat() const +{ + return (object.feat); +} + bool map_cell::known() const { return (object && (flags & MAP_GRID_KNOWN)); diff --git a/crawl-ref/source/map_knowledge.h b/crawl-ref/source/map_knowledge.h index 80263826d5..ee58ec51a5 100644 --- a/crawl-ref/source/map_knowledge.h +++ b/crawl-ref/source/map_knowledge.h @@ -16,6 +16,7 @@ struct map_cell void clear() { flags = 0; object = show_type(); } unsigned glyph() const; + dungeon_feature_type feat() const; bool known() const; bool seen() const; }; |