summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-28 23:53:21 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-28 23:53:21 +0000
commite33656cdd40145493ad97634f6a94e03299f2b67 (patch)
tree99526ac5d36f35748a53100cedf15c9d48e0e786 /crawl-ref/source/spl-cast.cc
parentae6e9ade3b9bbb1c88fae3091cde40ca0f3a538c (diff)
downloadcrawl-ref-e33656cdd40145493ad97634f6a94e03299f2b67.tar.gz
crawl-ref-e33656cdd40145493ad97634f6a94e03299f2b67.zip
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
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc11
1 files changed, 3 insertions, 8 deletions
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.