summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-swamp.cc
diff options
context:
space:
mode:
authorVsevolod Kozlov <zaba@wybt.net>2010-11-27 12:33:40 +0300
committerVsevolod Kozlov <zaba@wybt.net>2010-11-27 12:33:40 +0300
commitf4fdc0128206a8d449aa846767a6ac75643a07a0 (patch)
tree014f3242fcb238be858cb9cd843b5efcabb6f005 /crawl-ref/source/dgn-swamp.cc
parentf46131340277c7ae6ea948a9aab02a87044ff224 (diff)
downloadcrawl-ref-f4fdc0128206a8d449aa846767a6ac75643a07a0.tar.gz
crawl-ref-f4fdc0128206a8d449aa846767a6ac75643a07a0.zip
Remove old Swamp layout code that was surrounded by #ifdef OLD_SWAMP_LAYOUT.
Diffstat (limited to 'crawl-ref/source/dgn-swamp.cc')
-rw-r--r--crawl-ref/source/dgn-swamp.cc39
1 files changed, 0 insertions, 39 deletions
diff --git a/crawl-ref/source/dgn-swamp.cc b/crawl-ref/source/dgn-swamp.cc
index 4bfb4927f7..11c070090d 100644
--- a/crawl-ref/source/dgn-swamp.cc
+++ b/crawl-ref/source/dgn-swamp.cc
@@ -71,42 +71,3 @@ void dgn_build_swamp_level(int level)
dgn_place_stone_stairs();
process_disconnected_zones(0, 0, GXM - 1, GYM - 1, true, DNGN_TREE);
}
-
-
-#ifdef OLD_SWAMP_LAYOUT
-void dgn_prepare_swamp()
-{
- env.level_build_method += " swamp";
- env.level_layout_type = "swamp";
-
- const int margin = 5;
-
- for (int i = margin; i < (GXM - margin); i++)
- for (int j = margin; j < (GYM - margin); j++)
- {
- // Don't apply Swamp prep in vaults.
- if (!unforbidden(coord_def(i, j), MMT_VAULT))
- continue;
-
- // doors -> floors {dlb}
- if (grd[i][j] == DNGN_CLOSED_DOOR || grd[i][j] == DNGN_SECRET_DOOR)
- grd[i][j] = DNGN_FLOOR;
-
- // floors -> shallow water 1 in 3 times {dlb}
- if (grd[i][j] == DNGN_FLOOR && one_chance_in(3))
- grd[i][j] = DNGN_SHALLOW_WATER;
-
- // walls -> deep/shallow water or remain unchanged {dlb}
- if (grd[i][j] == DNGN_ROCK_WALL)
- {
- const int temp_rand = random2(6);
-
- if (temp_rand > 0) // 17% chance unchanged {dlb}
- {
- grd[i][j] = ((temp_rand > 2) ? DNGN_SHALLOW_WATER // 50%
- : DNGN_DEEP_WATER); // 33%
- }
- }
- }
-}
-#endif