summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/files.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2014-01-15 02:40:39 +0100
committerAdam Borowski <kilobyte@angband.pl>2014-01-15 02:40:39 +0100
commit298e3e9e4b6005a2e507c43a8d288de83165b18c (patch)
tree8aa0ddda5df9897e044db2910d2753e392287280 /crawl-ref/source/files.cc
parentb94c3af31203332ce87c366f83a6fe39b69d38fc (diff)
downloadcrawl-ref-298e3e9e4b6005a2e507c43a8d288de83165b18c.tar.gz
crawl-ref-298e3e9e4b6005a2e507c43a8d288de83165b18c.zip
Don't close portals upon picking up the Orb.
Diffstat (limited to 'crawl-ref/source/files.cc')
-rw-r--r--crawl-ref/source/files.cc28
1 files changed, 0 insertions, 28 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index 14a2d8c567..5df57c6bf6 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -924,29 +924,6 @@ static void _place_player_on_stair(branch_type old_branch,
you.moveto(dgn_find_nearby_stair(stair_type, dest_pos, find_first));
}
-static void _close_level_gates()
-{
- for (rectangle_iterator ri(0); ri; ++ri)
- {
- switch (grd(*ri))
- {
- case DNGN_ENTER_ABYSS:
- case DNGN_ENTER_COCYTUS:
- case DNGN_ENTER_DIS:
- case DNGN_ENTER_GEHENNA:
- case DNGN_ENTER_TARTARUS:
- case DNGN_ENTER_PANDEMONIUM:
- case DNGN_ENTER_LABYRINTH:
-#if TAG_MAJOR_VERSION == 34
- case DNGN_ENTER_PORTAL_VAULT:
-#endif
- remove_markers_and_listeners_at(*ri);
- grd(*ri) = DNGN_STONE_ARCH;
- default: ;
- }
- }
-}
-
static void _clear_env_map()
{
env.map_knowledge.init(map_cell());
@@ -1326,11 +1303,6 @@ bool load_level(dungeon_feature_type stair_taken, load_mode_type load_mode,
env.final_effects.clear();
los_changed();
- // Closes all the gates if you're on the way out.
- // Before marker activation since it removes some.
- if (make_changes && you.char_direction == GDT_ASCENDING)
- _close_level_gates();
-
// Markers must be activated early, since they may rely on
// events issued later, e.g. DET_ENTERING_LEVEL or
// the DET_TURN_ELAPSED from update_level.