From c6ed3e66570d031de512373ffc336234ce004b95 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Thu, 4 Jan 2007 17:40:20 +0000 Subject: item_ident(x, ISFLAG_KNOW_TYPE) is now deprecated in favour of item_type_known(x). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@786 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spl-book.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/spl-book.cc') diff --git a/crawl-ref/source/spl-book.cc b/crawl-ref/source/spl-book.cc index a28d6c3387..98d08ee2fe 100644 --- a/crawl-ref/source/spl-book.cc +++ b/crawl-ref/source/spl-book.cc @@ -1396,7 +1396,7 @@ int count_staff_spells(const item_def &item, bool need_id) if (item.base_type != OBJ_STAVES) return (-1); - if (need_id && !item_ident( item, ISFLAG_KNOW_TYPE )) + if (need_id && !item_type_known(item)) return (0); const int stype = item.sub_type; @@ -1458,7 +1458,7 @@ int staff_spell( int staff ) return (-1); } - if (!item_ident( you.inv[staff], ISFLAG_KNOW_TYPE )) + if (!item_type_known(you.inv[staff])) { set_ident_flags( you.inv[staff], ISFLAG_KNOW_TYPE ); you.wield_change = true; -- cgit v1.2.3-54-g00ecf