From 077584cc2f1af9da5fc671f59ca117389db508df Mon Sep 17 00:00:00 2001 From: haranp Date: Thu, 11 Oct 2007 20:10:42 +0000 Subject: Fix for 1807899: stash-examining a shop will trigger ID noting. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2443 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/stash.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crawl-ref/source/stash.cc') diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc index 962883da9d..89c2106cb4 100644 --- a/crawl-ref/source/stash.cc +++ b/crawl-ref/source/stash.cc @@ -24,6 +24,7 @@ #include "menu.h" #include "message.h" #include "misc.h" +#include "notes.h" #include "overmap.h" #include "place.h" #include "shopping.h" @@ -563,6 +564,7 @@ void Stash::write(std::ostream &os, bool identify) const { + activate_notes(false); if (!enabled || (items.size() == 0 && verified)) return; os << "(" << ((int) x - refx) << ", " << ((int) y - refy) << (place.length()? ", " + place : "") @@ -616,6 +618,7 @@ void Stash::write(std::ostream &os, if (items.size() <= 1 && !verified) os << " (unseen)" << std::endl; + activate_notes(true); } void Stash::save(FILE *file) const @@ -871,6 +874,7 @@ bool ShopInfo::matches_search(const std::string &prefix, void ShopInfo::write(std::ostream &os, bool identify) const { + activate_notes(false); os << "[Shop] " << name << std::endl; if (items.size() > 0) { @@ -891,6 +895,7 @@ void ShopInfo::write(std::ostream &os, bool identify) const os << " (Shop is empty)" << std::endl; else os << " (Shop contents are unknown)" << std::endl; + activate_notes(true); } void ShopInfo::save(FILE *file) const -- cgit v1.2.3-54-g00ecf