summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemname.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/itemname.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/itemname.cc')
-rw-r--r--crawl-ref/source/itemname.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/crawl-ref/source/itemname.cc b/crawl-ref/source/itemname.cc
index 1237d50d04..400a77da24 100644
--- a/crawl-ref/source/itemname.cc
+++ b/crawl-ref/source/itemname.cc
@@ -1559,7 +1559,13 @@ void set_ident_type( object_class_type basetype, int subtype,
const item_type_id_type idt = objtype_to_idtype(basetype);
if ( idt != NUM_IDTYPE )
- type_ids[idt][subtype] = setting;
+ {
+ if (type_ids[idt][subtype] != setting)
+ {
+ type_ids[idt][subtype] = setting;
+ request_autoinscribe();
+ }
+ }
}
item_type_id_state_type get_ident_type(object_class_type basetype, int subtype)