summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-book.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-04 17:40:20 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-01-04 17:40:20 +0000
commitc6ed3e66570d031de512373ffc336234ce004b95 (patch)
tree26752170fa097760b6c24dc827a6419c5b06d0ec /crawl-ref/source/spl-book.cc
parent4b78d5ee2bdfcc69c14759de3b970e2372e74d4f (diff)
downloadcrawl-ref-c6ed3e66570d031de512373ffc336234ce004b95.tar.gz
crawl-ref-c6ed3e66570d031de512373ffc336234ce004b95.zip
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
Diffstat (limited to 'crawl-ref/source/spl-book.cc')
-rw-r--r--crawl-ref/source/spl-book.cc4
1 files changed, 2 insertions, 2 deletions
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;