summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-28 21:46:27 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-06-28 21:46:27 +0000
commitfc09d2de4c77399a6562507ad99c394d93c5cee9 (patch)
treeb957a366c7ca56c83a0e3075aed0e738a0abf5ae /crawl-ref/source/itemprop.cc
parent0ffadca40b94c481141887d294d311ff738c2ad1 (diff)
downloadcrawl-ref-fc09d2de4c77399a6562507ad99c394d93c5cee9.tar.gz
crawl-ref-fc09d2de4c77399a6562507ad99c394d93c5cee9.zip
Fix 2004501: buggy ?identify; also finally properly id ?identify itself
after a successful identification (if there are several). Fix 2004793: wandering mushroom flees - for real, this time (I hope). git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6189 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index f12d833682..6049435031 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -568,8 +568,8 @@ bool item_is_critical(const item_def &item)
return (item.base_type == OBJ_MISCELLANY
&& item.sub_type == MISC_RUNE_OF_ZOT
- && (item.plus != RUNE_DEMONIC
- && item.plus != RUNE_ABYSSAL));
+ && item.plus != RUNE_DEMONIC
+ && item.plus != RUNE_ABYSSAL);
}
void set_ident_flags( item_def &item, unsigned long flags )
@@ -630,7 +630,7 @@ unsigned long full_ident_mask( const item_def& item )
break;
case OBJ_JEWELLERY:
flagset = (ISFLAG_KNOW_CURSE | ISFLAG_KNOW_TYPE);
- if ( ring_has_pluses(item) )
+ if (ring_has_pluses(item))
flagset |= ISFLAG_KNOW_PLUSES;
break;
case OBJ_MISSILES: