summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/files.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc
index 933292e178..10c095a2e0 100644
--- a/crawl-ref/source/files.cc
+++ b/crawl-ref/source/files.cc
@@ -1061,9 +1061,11 @@ bool load( dungeon_feature_type stair_taken, load_mode_type load_mode,
just_created_level = true;
// closes all the gates if you're on the way out
- if (you.char_direction == GDT_ASCENDING &&
- you.level_type != LEVEL_PANDEMONIUM)
+ if (you.char_direction == GDT_ASCENDING
+ && you.level_type != LEVEL_PANDEMONIUM)
+ {
close_level_gates();
+ }
if (just_created_level)
clear_env_map();