diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-08 11:35:20 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-07-08 11:35:20 +0000 |
commit | 973509a558e93af8c9ba7ea70a860f5f51d3c718 (patch) | |
tree | 4a9a11f288b47f261cce2b65199142b9ba3f2658 /crawl-ref/source/item_use.cc | |
parent | 9e2952d470e02deab56ae8e2ea8773a8ab1662b7 (diff) | |
download | crawl-ref-973509a558e93af8c9ba7ea70a860f5f51d3c718.tar.gz crawl-ref-973509a558e93af8c9ba7ea70a860f5f51d3c718.zip |
Note improvements (1749776). Double notes are possible if regexps
are careless.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1797 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index 6c803040e6..19a2d3b747 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -3643,6 +3643,9 @@ void read_scroll(void) // scrolls of immolation were already destroyed earlier if (scroll_type != SCR_PAPER && scroll_type != SCR_IMMOLATION) { + if ( id_the_scroll ) + set_ident_flags( scroll, ISFLAG_KNOW_TYPE ); // for notes + dec_inv_item_quantity( item_slot, 1 ); } |