diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-04-20 18:01:09 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-04-20 18:01:09 +0000 |
commit | d9dd888a10a3087d3ec5cf82364cfd6495abd3e4 (patch) | |
tree | 6acddf0f589891b2925f7653208ba2e29d1478d6 /crawl-ref/source/dungeon.cc | |
parent | bb3b8b8286b84de95546d1121d0c305bbdc85851 (diff) | |
download | crawl-ref-d9dd888a10a3087d3ec5cf82364cfd6495abd3e4.tar.gz crawl-ref-d9dd888a10a3087d3ec5cf82364cfd6495abd3e4.zip |
* 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
Diffstat (limited to 'crawl-ref/source/dungeon.cc')
-rw-r--r-- | crawl-ref/source/dungeon.cc | 16 |
1 files changed, 8 insertions, 8 deletions
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). |