summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 02:06:39 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 02:06:39 +0000
commit10600478b36cdc29c388fe36505da3176dc575ba (patch)
treed582c47245b4bc966f4079d8138f8d5641e376ec /crawl-ref/source/monstuff.cc
parent0a9ebf7263af1c55e14b60c32b211e34c31caa3f (diff)
downloadcrawl-ref-10600478b36cdc29c388fe36505da3176dc575ba.tar.gz
crawl-ref-10600478b36cdc29c388fe36505da3176dc575ba.zip
Fix warning.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8150 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index 5bd0e86d35..a2d1069512 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -865,7 +865,7 @@ static bool _spore_goes_pop(monsters *monster, killer_type killer,
if (monster->hit_points > 0 || monster->hit_points <= -15 || wizard
|| killer == KILL_RESET || killer == KILL_DISMISSED)
{
- return false;
+ return (false);
}
if (killer == KILL_MISC)
@@ -931,7 +931,7 @@ static bool _spore_goes_pop(monsters *monster, killer_type killer,
}
if (is_sanctuary(monster->pos()))
- return false;
+ return (false);
// Detach monster from the grid first, so it doesn't get hit by
// its own explosion. (GDL)
@@ -946,6 +946,7 @@ static bool _spore_goes_pop(monsters *monster, killer_type killer,
beam.explode();
// Monster died in explosion, so don't re-attach it to the grid.
+ return (true);
}
void _monster_die_cloud(const monsters* monster, bool corpse, bool silent,