summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/itemprop.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-22 04:06:28 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-22 04:06:28 +0000
commit2b38959cd0739d9f1e81c46547cd989c2273865b (patch)
treea28a686b5446793d8d0a89da1e9e73b4a96177c3 /crawl-ref/source/itemprop.cc
parent6902cd6f6fff41d91ccfd314de783e50ba43818c (diff)
downloadcrawl-ref-2b38959cd0739d9f1e81c46547cd989c2273865b.tar.gz
crawl-ref-2b38959cd0739d9f1e81c46547cd989c2273865b.zip
Fix inverted logic that was allowing racial centaur/naga bardings to be
created. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8672 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemprop.cc')
-rw-r--r--crawl-ref/source/itemprop.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/crawl-ref/source/itemprop.cc b/crawl-ref/source/itemprop.cc
index 25ac97b10e..58b01629f0 100644
--- a/crawl-ref/source/itemprop.cc
+++ b/crawl-ref/source/itemprop.cc
@@ -698,10 +698,10 @@ void set_equip_race( item_def &item, unsigned long flags )
case OBJ_ARMOUR:
// not hides, dragon armour, crystal plate, or barding
- if (item.sub_type >= ARM_DRAGON_HIDE
- && item.sub_type <= ARM_SWAMP_DRAGON_ARMOUR
- && item.sub_type != ARM_CENTAUR_BARDING
- && item.sub_type != ARM_NAGA_BARDING)
+ if ((item.sub_type >= ARM_DRAGON_HIDE
+ && item.sub_type <= ARM_SWAMP_DRAGON_ARMOUR)
+ || item.sub_type == ARM_CENTAUR_BARDING
+ || item.sub_type == ARM_NAGA_BARDING)
{
return;
}