summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mapdef.cc
diff options
context:
space:
mode:
authorChris Oelmueller <chris.oelmueller@gmail.com>2013-07-31 03:58:01 +0200
committerChris Campbell <chriscampbell89@gmail.com>2013-08-03 03:08:12 +0100
commitf66cb844ab65f57161a52e3843ddda8f230588a8 (patch)
tree9e20151ad2b2c9f1ebd2bd0ec42b4f30091414cc /crawl-ref/source/mapdef.cc
parenta588b26c5ef24f6ad469d5c1d48b4b7702040c96 (diff)
downloadcrawl-ref-f66cb844ab65f57161a52e3843ddda8f230588a8.tar.gz
crawl-ref-f66cb844ab65f57161a52e3843ddda8f230588a8.zip
More padding fixes for ternary operator
Diffstat (limited to 'crawl-ref/source/mapdef.cc')
-rw-r--r--crawl-ref/source/mapdef.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/mapdef.cc b/crawl-ref/source/mapdef.cc
index a2cfd9f85d..a5e522848d 100644
--- a/crawl-ref/source/mapdef.cc
+++ b/crawl-ref/source/mapdef.cc
@@ -4772,8 +4772,8 @@ item_spec item_list::parse_corpse_spec(item_spec &result, string s)
const bool skeleton = !corpse && strip_suffix(s, "skeleton");
const bool chunk = !corpse && !skeleton && strip_suffix(s, "chunk");
- result.base_type = chunk? OBJ_FOOD : OBJ_CORPSES;
- result.sub_type = (chunk ? static_cast<int>(FOOD_CHUNK) :
+ result.base_type = chunk ? OBJ_FOOD : OBJ_CORPSES;
+ result.sub_type = (chunk ? static_cast<int>(FOOD_CHUNK) :
static_cast<int>(corpse ? CORPSE_BODY :
CORPSE_SKELETON));