summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/monstuff.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-19 19:23:39 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-07-19 19:23:39 +0000
commit0cbc3be58fb17485301e3e0ddc48bd7eb3324408 (patch)
tree995a0faf4185c6ef86b8eb1a58668fc8e45c9cbb /crawl-ref/source/monstuff.cc
parenta40e94b9235abcdde3361b72e061558083f95288 (diff)
downloadcrawl-ref-0cbc3be58fb17485301e3e0ddc48bd7eb3324408.tar.gz
crawl-ref-0cbc3be58fb17485301e3e0ddc48bd7eb3324408.zip
Handle one more case of Jiyva's altar removal.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10335 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/monstuff.cc')
-rw-r--r--crawl-ref/source/monstuff.cc17
1 files changed, 1 insertions, 16 deletions
diff --git a/crawl-ref/source/monstuff.cc b/crawl-ref/source/monstuff.cc
index e4e2747aa7..9f5da46605 100644
--- a/crawl-ref/source/monstuff.cc
+++ b/crawl-ref/source/monstuff.cc
@@ -761,21 +761,6 @@ static bool _monster_avoided_death(monsters *monster, killer_type killer, int i)
return (false);
}
-static bool _remove_jiyva_altars()
-{
- bool success = false;
- for (rectangle_iterator ri(1); ri; ++ri)
- {
- if (grd(*ri) == DNGN_ALTAR_JIYVA)
- {
- grd(*ri) = DNGN_FLOOR;
- success = true;
- }
- }
-
- return (success);
-}
-
static bool _slime_vault_in_los()
{
bool in_los = false;
@@ -824,7 +809,7 @@ static bool _slime_vault_to_glass(bool silent)
}
}
- apply_to_all_dungeons(_remove_jiyva_altars);
+ remove_all_jiyva_altars();
if (silenced(you.pos()))
{