summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/stash.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-14 10:15:25 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-14 10:15:25 +0000
commit014ab7e33a12d7ac74988514e88c6542005f57c8 (patch)
tree67709657924e92a4c0f7b9033db4b43dc20f4a6d /crawl-ref/source/stash.cc
parent0a14dac08b6339e154870297c2035567a5197a6a (diff)
downloadcrawl-ref-014ab7e33a12d7ac74988514e88c6542005f57c8.tar.gz
crawl-ref-014ab7e33a12d7ac74988514e88c6542005f57c8.zip
Fix bug where dumping the character to file would turn off note taking for
the rest of the game session. Make a note if the user starts the game in wizard mode, when wizard mode is entered, and when death is escaped via wizard mode. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5812 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/stash.cc')
-rw-r--r--crawl-ref/source/stash.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/stash.cc b/crawl-ref/source/stash.cc
index 7bfcd18ba8..1172c4abd0 100644
--- a/crawl-ref/source/stash.cc
+++ b/crawl-ref/source/stash.cc
@@ -644,12 +644,12 @@ void Stash::write(std::ostream &os, int refx, int refy,
std::string place, bool identify)
const
{
- bool note_status = notes_are_active();
- activate_notes(false);
-
if (!enabled || (items.size() == 0 && verified))
return;
+ bool note_status = notes_are_active();
+ activate_notes(false);
+
os << "(" << ((int) x - refx) << ", " << ((int) y - refy)
<< (place.length()? ", " + place : "")
<< ")"