From d9dd888a10a3087d3ec5cf82364cfd6495abd3e4 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 20 Apr 2009 18:01:09 +0000 Subject: * Fix database search crashing on pandemonium demons/player ghost. * Make Xom say e.g. "gate" for the repel stair effect if there's only a gate nearby. * Weapons of vampiricism have no effect on summoned creatures, as is already the case for Vampire bites and the Vampiric Draining spell. * Make berserking monsters immune to fear. (The sanctuary still works.) * General clean-up. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9669 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/dungeon.cc | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'crawl-ref/source/dungeon.cc') diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 3930a08826..323cf704c3 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -1131,17 +1131,17 @@ static void _fixup_branch_stairs() && you.level_type == LEVEL_DUNGEON) { const dungeon_feature_type exit = your_branch().exit_stairs; - for ( rectangle_iterator ri(1); ri; ++ri ) + for (rectangle_iterator ri(1); ri; ++ri) { - if (grd(*ri) >= DNGN_STONE_STAIRS_UP_I - && grd(*ri) <= DNGN_ESCAPE_HATCH_UP) - { - if (grd(*ri) == DNGN_STONE_STAIRS_UP_I) - env.markers.add(new map_feature_marker(*ri, grd(*ri))); + if (grd(*ri) >= DNGN_STONE_STAIRS_UP_I + && grd(*ri) <= DNGN_ESCAPE_HATCH_UP) + { + if (grd(*ri) == DNGN_STONE_STAIRS_UP_I) + env.markers.add(new map_feature_marker(*ri, grd(*ri))); - grd(*ri) = exit; - } + grd(*ri) = exit; } + } } // Branches that consist of only 1 level (Hall of Blades). -- cgit v1.2.3-54-g00ecf