From 914e4acb0353c4d24e5beeebb7074217505db5d1 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 2 Sep 2007 13:33:06 +0000 Subject: 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 --- crawl-ref/source/itemprop.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'crawl-ref/source/itemprop.cc') 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)) { -- cgit v1.2.3-54-g00ecf