summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/dgn-layouts.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-04-09 02:41:11 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-04-09 02:41:11 +0200
commit6e122962987ee88a440076f15fe9f3e07b8e4d9c (patch)
treed3f5a4544886dd0168289b98c9b2ebb64e2e3531 /crawl-ref/source/dgn-layouts.cc
parent19172b76fd9907625c84e940f5231e7a39954491 (diff)
downloadcrawl-ref-6e122962987ee88a440076f15fe9f3e07b8e4d9c.tar.gz
crawl-ref-6e122962987ee88a440076f15fe9f3e07b8e4d9c.zip
Use name not (int)enum for other layout extras as well.
Diffstat (limited to 'crawl-ref/source/dgn-layouts.cc')
-rw-r--r--crawl-ref/source/dgn-layouts.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/crawl-ref/source/dgn-layouts.cc b/crawl-ref/source/dgn-layouts.cc
index 0c8a7550d3..a033a4bb33 100644
--- a/crawl-ref/source/dgn-layouts.cc
+++ b/crawl-ref/source/dgn-layouts.cc
@@ -161,7 +161,8 @@ void dgn_build_bigger_room_level(void)
// A more chaotic version of city level.
void dgn_build_chaotic_city_level(dungeon_feature_type force_wall)
{
- env.level_build_method += make_stringf(" chaotic_city [%d]", (int) force_wall);
+ env.level_build_method += make_stringf(" chaotic_city [%s]",
+ force_wall == NUM_FEATURES ? "any" : dungeon_feature_name(force_wall));
env.level_layout_types.insert("city");
int number_boxes = 5000;
@@ -455,8 +456,8 @@ static void _builder_extras(int level_number)
static bool _octa_room(dgn_region& region, int oblique_max,
dungeon_feature_type type_floor)
{
- env.level_build_method += make_stringf(" octa_room [%d %d]", oblique_max,
- (int) type_floor);
+ env.level_build_method += make_stringf(" octa_room [%d %s]", oblique_max,
+ dungeon_feature_name(type_floor));
int x,y;
@@ -1027,8 +1028,8 @@ static void _many_pools(dungeon_feature_type pool_type)
const int num_pools = 20 + random2avg(9, 2);
int pools = 0;
- env.level_build_method += make_stringf(" many_pools [%d %d]", (int)pool_type,
- num_pools);
+ env.level_build_method += make_stringf(" many_pools [%s %d]",
+ dungeon_feature_name(pool_type), num_pools);
for (int timeout = 0; pools < num_pools && timeout < 30000; ++timeout)
{