From e33656cdd40145493ad97634f6a94e03299f2b67 Mon Sep 17 00:00:00 2001 From: haranp Date: Sat, 28 Feb 2009 23:53:21 +0000 Subject: When wizard-tweaking object flags, read input in hex, not decimal. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9296 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/spl-cast.cc | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'crawl-ref/source/spl-cast.cc') diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc index 1661a1f33a..31e06876bf 100644 --- a/crawl-ref/source/spl-cast.cc +++ b/crawl-ref/source/spl-cast.cc @@ -332,14 +332,9 @@ int spell_fail(spell_type spell) // Dwarven armour hinders everyone. switch (race_arm) { - case ISFLAG_ELVEN: - armour -= 20; - break; - case ISFLAG_DWARVEN: - armour += 10; - break; - default: - break; + case ISFLAG_ELVEN: armour -= 20; break; + case ISFLAG_DWARVEN: armour += 10; break; + default: break; } // Armour of the same racial type reduces penalty. -- cgit v1.2.3-54-g00ecf