summaryrefslogtreecommitdiffstats
path: root/crawl-ref
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-19 07:32:17 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-19 07:32:17 +0000
commitd567ea506b72685b614643de3a09398bb9f0cdd8 (patch)
tree84477e9e90bf2718f31b98f705ac833686f218fe /crawl-ref
parentaadec04e07084460947db12a381736c9294ef3b2 (diff)
downloadcrawl-ref-d567ea506b72685b614643de3a09398bb9f0cdd8.tar.gz
crawl-ref-d567ea506b72685b614643de3a09398bb9f0cdd8.zip
Add miscellaneous minor fixes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8577 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref')
-rw-r--r--crawl-ref/source/mon-util.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index a8ebda12d5..41ca25e746 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -1396,8 +1396,13 @@ int mons_res_cold(const monsters *mon)
int mons_res_miasma(const monsters *mon)
{
- return (mons_holiness(mon) != MH_NATURAL
- || mon->type == MONS_DEATH_DRAKE ? 3 : 0);
+ if (mons_holiness(mon) != MH_NATURAL
+ || mon->type == MONS_DEATH_DRAKE)
+ {
+ return (3);
+ }
+
+ return (0);
}
int mons_res_negative_energy(const monsters *mon)