summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-11 20:10:42 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-11 20:10:42 +0000
commit077584cc2f1af9da5fc671f59ca117389db508df (patch)
tree52478d1e84061e47a7bab505967edf8196db1ed0 /crawl-ref/source/stash.cc
parent807feb82ade2f6ad782bb6e81c30abfcc0741544 (diff)
downloadcrawl-ref-077584cc2f1af9da5fc671f59ca117389db508df.tar.gz
crawl-ref-077584cc2f1af9da5fc671f59ca117389db508df.zip
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
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r--crawl-ref/source/stash.cc5
1 files changed, 5 insertions, 0 deletions
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