summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/travel.h
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2011-12-13 22:43:10 -0500
committerNeil Moore <neil@s-z.org>2011-12-13 22:46:02 -0500
commit75be98b28b78f88a1908424bdf82d89ef5a30a77 (patch)
treef13e0db41517c9540c36ae939b3350ebfc9820d5 /crawl-ref/source/travel.h
parentb9a50c801f3affad7eea327dc85e20f607a81a57 (diff)
downloadcrawl-ref-75be98b28b78f88a1908424bdf82d89ef5a30a77.tar.gz
crawl-ref-75be98b28b78f88a1908424bdf82d89ef5a30a77.zip
Avoid "Found one items."
The message could only happen if the item's name was long enough that the "Found <blah>." message would not fit on the screen. Fix this by having say_any() take the singular category name instead of a message stub, and pluralising the category if necessary.
Diffstat (limited to 'crawl-ref/source/travel.h')
-rw-r--r--crawl-ref/source/travel.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/travel.h b/crawl-ref/source/travel.h
index dc67372bc2..0bbdfa505b 100644
--- a/crawl-ref/source/travel.h
+++ b/crawl-ref/source/travel.h
@@ -270,7 +270,7 @@ private:
std::vector<std::string> marked_feats;
private:
- template <class C> void say_any(const C &coll, const char *stub) const;
+ template <class C> void say_any(const C &coll, const char *category) const;
template <class citer> bool has_duplicates(citer, citer) const;
std::string cleaned_feature_description(const coord_def &) const;