From 44d7fbb36c55859117824fe25a298afbe437221b Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Sun, 6 Jul 2008 20:14:35 +0000 Subject: Fix 1870427: Max hp misreported if frail and rotted. Fix 2002931: feature_item_brand not working No, it's not the important bugs, but at least these are bugs I can reproduce. :P git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6433 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/libunix.cc | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'crawl-ref/source/libunix.cc') diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc index eb66fb36ab..0859bc18f6 100644 --- a/crawl-ref/source/libunix.cc +++ b/crawl-ref/source/libunix.cc @@ -744,15 +744,15 @@ bool is_cursor_enabled() inline unsigned get_brand(int col) { - return (col & COLFLAG_FRIENDLY_MONSTER)? Options.friend_brand : - (col & COLFLAG_NEUTRAL_MONSTER)? Options.neutral_brand : - (col & COLFLAG_ITEM_HEAP)? Options.heap_brand : - (col & COLFLAG_WILLSTAB)? Options.stab_brand : - (col & COLFLAG_MAYSTAB)? Options.may_stab_brand : - (col & COLFLAG_STAIR_ITEM)? Options.feature_item_brand : - (col & COLFLAG_TRAP_ITEM)? Options.trap_item_brand : - (col & COLFLAG_REVERSE)? CHATTR_REVERSE : - CHATTR_NORMAL; + return (col & COLFLAG_FRIENDLY_MONSTER) ? Options.friend_brand : + (col & COLFLAG_NEUTRAL_MONSTER) ? Options.neutral_brand : + (col & COLFLAG_ITEM_HEAP) ? Options.heap_brand : + (col & COLFLAG_WILLSTAB) ? Options.stab_brand : + (col & COLFLAG_MAYSTAB) ? Options.may_stab_brand : + (col & COLFLAG_FEATURE_ITEM) ? Options.feature_item_brand : + (col & COLFLAG_TRAP_ITEM) ? Options.trap_item_brand : + (col & COLFLAG_REVERSE) ? CHATTR_REVERSE + : CHATTR_NORMAL; } void textattr(int col) -- cgit v1.2.3-54-g00ecf