diff options
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r-- | crawl-ref/source/items.cc | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index 0e1df7ed03..be498dfb6d 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -1289,16 +1289,13 @@ bool is_stackable_item( const item_def &item ) return (false); } -int ident_flags(const item_def &item) +unsigned long ident_flags(const item_def &item) { - const int identmask = full_ident_mask(item); - int flags = item.flags & identmask; + const unsigned long identmask = full_ident_mask(item); + unsigned long flags = item.flags & identmask; - if (identmask && (identmask & ISFLAG_KNOW_TYPE) - && !(flags & ISFLAG_KNOW_TYPE) && item_type_known(item)) - { + if ((identmask & ISFLAG_KNOW_TYPE) && item_type_known(item)) flags |= ISFLAG_KNOW_TYPE; - } return (flags); } |