From f0872643a9e8cba0f0182d61108cac2ecb4832b9 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Sun, 10 Jan 2010 18:50:02 -0600 Subject: don't ruin special room walls --- crawl-ref/source/dungeon.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crawl-ref/source/dungeon.cc') diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc index 5fe32e6f06..fdf91dd06b 100644 --- a/crawl-ref/source/dungeon.cc +++ b/crawl-ref/source/dungeon.cc @@ -1834,12 +1834,6 @@ static void _build_dungeon_level(int level_number, int level_type) if (!player_in_branch(BRANCH_DIS) && !player_in_branch(BRANCH_VAULTS)) _hide_doors(); - // Change pre-rock to rock, and pre-floor to floor. - dgn_replace_area(0, 0, GXM-1, GYM-1, DNGN_BUILDER_SPECIAL_WALL, - DNGN_ROCK_WALL); - dgn_replace_area(0, 0, GXM-1, GYM-1, DNGN_BUILDER_SPECIAL_FLOOR, - DNGN_FLOOR); - if (player_in_branch(BRANCH_LAIR)) { int depth = player_branch_depth() + 1; @@ -1850,6 +1844,12 @@ static void _build_dungeon_level(int level_number, int level_type) } while (depth > 0); } + // Change pre-rock to rock, and pre-floor to floor. + dgn_replace_area(0, 0, GXM-1, GYM-1, DNGN_BUILDER_SPECIAL_WALL, + DNGN_ROCK_WALL); + dgn_replace_area(0, 0, GXM-1, GYM-1, DNGN_BUILDER_SPECIAL_FLOOR, + DNGN_FLOOR); + const unsigned nvaults = Level_Vaults.size(); // Any further vaults must make sure not to disrupt level layout. -- cgit v1.2.3-54-g00ecf