diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-06 08:34:09 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-06 08:34:09 +0000 |
commit | 862f907158311aa239b0a82fa4abb4a4e398861d (patch) | |
tree | de007cddafe6f022bb07b4451010ae3ba2e755da /crawl-ref/source/travel.h | |
parent | 5aa579ca769a34f0af8a8093a2a94ba03b92ff3e (diff) | |
download | crawl-ref-862f907158311aa239b0a82fa4abb4a4e398861d.tar.gz crawl-ref-862f907158311aa239b0a82fa4abb4a4e398861d.zip |
[1748837] Fixed odd-looking messages when explore finds two or more identical
features.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1769 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/travel.h')
-rw-r--r-- | crawl-ref/source/travel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h index 334797391f..a5a964ef76 100644 --- a/crawl-ref/source/travel.h +++ b/crawl-ref/source/travel.h @@ -299,6 +299,8 @@ public: private: template <class C> void say_any(const C &coll, const char *stub) const; + template <class citer> bool has_duplicates(citer, citer) const; + std::string cleaned_feature_description(dungeon_feature_type feature) const; void add_item(const item_def &item); @@ -309,6 +311,11 @@ private: named_thing(const std::string &n, Z t) : name(n), thing(t) { } operator std::string () const { return name; } + + bool operator == (const named_thing<Z> &other) const + { + return (name == other.name); + } }; int es_flags; |