From 862f907158311aa239b0a82fa4abb4a4e398861d Mon Sep 17 00:00:00 2001 From: dshaligram Date: Fri, 6 Jul 2007 08:34:09 +0000 Subject: [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 --- crawl-ref/source/travel.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'crawl-ref/source/travel.h') 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 void say_any(const C &coll, const char *stub) const; + template 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 &other) const + { + return (name == other.name); + } }; int es_flags; -- cgit v1.2.3-54-g00ecf