summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-02 13:33:06 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2007-09-02 13:33:06 +0000
commit914e4acb0353c4d24e5beeebb7074217505db5d1 (patch)
treea37b55d6329acd57c5bd75a0f9692460123ed046 /crawl-ref/source/itemprop.cc
parent9d37693a7e90747aa4a5c6be99bc05b57e24ce50 (diff)
downloadcrawl-ref-914e4acb0353c4d24e5beeebb7074217505db5d1.tar.gz
crawl-ref-914e4acb0353c4d24e5beeebb7074217505db5d1.zip
Implementing patch 1783079 (improved inscriptions) by
zelgadis. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2044 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index 4526448db4..dfd2020310 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -494,7 +494,12 @@ bool item_is_critical(const item_def &item)
void set_ident_flags( item_def &item, unsigned long flags )
{
- item.flags |= flags;
+ if ((item.flags & flags) != flags)
+ {
+ item.flags |= flags;
+ request_autoinscribe();
+ }
+
if (notes_are_active() && !(item.flags & ISFLAG_NOTED_ID) &&
fully_identified(item) && is_interesting_item(item))
{