From 99578a522dbdc7ae3b19a6ec06c61193bcd08e65 Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Fri, 7 Nov 2008 23:25:16 +0000 Subject: Change floor_property (blood, sanctuary) to flags, and add two new settings: vault and highlight. Vault means a grid is part of a vault (set in dungeon.cc), and currently used to exempt vault grids when shifting labyrinths. Highlight is a meta flag currently only used to highlight labyrinth changes on the 'X' map in wizard mode, but I can think of a couple of other uses, mostly for debugging purposes. Also replace a few for loops in the lab shift function with rectangle_iterators. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7414 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/files.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'crawl-ref/source/files.cc') diff --git a/crawl-ref/source/files.cc b/crawl-ref/source/files.cc index e7285e8178..792f541063 100644 --- a/crawl-ref/source/files.cc +++ b/crawl-ref/source/files.cc @@ -1133,6 +1133,7 @@ bool load( dungeon_feature_type stair_taken, load_mode_type load_mode, tmp_file_pairs[you.your_level][you.where_are_you] = true; } + _clear_env_map(); builder(you.your_level, you.level_type); just_created_level = true; @@ -1191,9 +1192,6 @@ bool load( dungeon_feature_type stair_taken, load_mode_type load_mode, _close_level_gates(); } - if (just_created_level) - _clear_env_map(); - // Here's the second cloud clearing, on load (see above). if (make_changes) { -- cgit v1.2.3-54-g00ecf