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/files.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/files.cc')
-rw-r--r-- | crawl-ref/source/files.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index d6f163c63d..18c9571f3b 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -900,19 +900,18 @@ static void _place_player_on_stair(level_area_type old_level_type, static void _close_level_gates() { - for ( int i = 0; i < GXM; ++i ) - for ( int j = 0; j < GYM; ++j ) + for (rectangle_iterator ri(0); ri; ++ri) + { + if (you.char_direction == GDT_ASCENDING + && you.level_type != LEVEL_PANDEMONIUM) { - if (you.char_direction == GDT_ASCENDING - && you.level_type != LEVEL_PANDEMONIUM) + if (grid_sealable_portal(grd(*ri))) { - if (grid_sealable_portal(grd[i][j])) - { - grd[i][j] = DNGN_STONE_ARCH; - env.markers.remove_markers_at(coord_def(i,j), MAT_ANY); - } + grd(*ri) = DNGN_STONE_ARCH; + env.markers.remove_markers_at(*ri, MAT_ANY); } } + } } static void _clear_env_map() |