From 6052fa93471180670f18d1abad16b2a12cdcf1dc Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Tue, 20 May 2008 11:47:37 +0000 Subject: Finally fix 1868761: Books in shops being noted as identified over and over again (when searching stashes). Also remove my recently added NOTE_FOUND_ORB_OR_RUNES in favour of the previously existing NOTE_GET_ITEM. Also I've noticed that this is probably already listed in the "milestones" - but what on earth are they? git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5150 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/itemprop.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'crawl-ref/source/itemprop.cc') diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc index e7617661fc..c8004d4424 100644 --- a/crawl-ref/source/itemprop.cc +++ b/crawl-ref/source/itemprop.cc @@ -574,11 +574,12 @@ void set_ident_flags( item_def &item, unsigned long flags ) if (notes_are_active() && !(item.flags & ISFLAG_NOTED_ID) && fully_identified(item) && is_interesting_item(item)) { - // make a note of it + // Make a note of it. take_note(Note(NOTE_ID_ITEM, 0, 0, item.name(DESC_NOCAP_A).c_str(), origin_desc(item).c_str())); - // sometimes (e.g. shops) you can ID an item before you get it; - // don't note twice in those cases + + // Sometimes (e.g. shops) you can ID an item before you get it; + // don't note twice in those cases. item.flags |= (ISFLAG_NOTED_ID | ISFLAG_NOTED_GET); } } -- cgit v1.2.3-54-g00ecf