diff options
author | Jude Brown <bookofjude@users.sourceforge.net> | 2009-12-05 18:58:28 +1000 |
---|---|---|
committer | Jude Brown <bookofjude@users.sourceforge.net> | 2009-12-05 18:58:53 +1000 |
commit | f1bba037620a7217a84e8930b9e2509c44ada1ef (patch) | |
tree | bf50e69571e99fc04fe238cd9eff783fe6f1d019 /crawl-ref/source/viewmap.cc | |
parent | 8069f7106f92be1e447c830c92ab1628701ab782 (diff) | |
download | crawl-ref-f1bba037620a7217a84e8930b9e2509c44ada1ef.tar.gz crawl-ref-f1bba037620a7217a84e8930b9e2509c44ada1ef.zip |
Use place_name, not custom _level_description_string.
Diffstat (limited to 'crawl-ref/source/viewmap.cc')
-rw-r--r-- | crawl-ref/source/viewmap.cc | 36 |
1 files changed, 3 insertions, 33 deletions
diff --git a/crawl-ref/source/viewmap.cc b/crawl-ref/source/viewmap.cc index 5c642627f8..168943a2c7 100644 --- a/crawl-ref/source/viewmap.cc +++ b/crawl-ref/source/viewmap.cc @@ -345,38 +345,6 @@ static int _get_number_of_lines_levelmap() } #ifndef USE_TILE -static std::string _level_description_string() -{ - if (you.level_type == LEVEL_PANDEMONIUM) - return "- Pandemonium"; - - if (you.level_type == LEVEL_ABYSS) - return "- The Abyss"; - - if (you.level_type == LEVEL_LABYRINTH) - return "- a Labyrinth"; - - if (you.level_type == LEVEL_PORTAL_VAULT) - { - if (!you.level_type_name.empty()) - return "- " + article_a(upcase_first(you.level_type_name)); - return "- a Portal Chamber"; - } - - // level_type == LEVEL_DUNGEON - char buf[200]; - const int youbranch = you.where_are_you; - if ( branches[youbranch].depth == 1 ) - snprintf(buf, sizeof buf, "- %s", branches[youbranch].longname); - else - { - const int curr_subdungeon_level = player_branch_depth(); - snprintf(buf, sizeof buf, "%d of %s", curr_subdungeon_level, - branches[youbranch].longname); - } - return buf; -} - static void _draw_level_map(int start_x, int start_y, bool travel_mode, bool on_level) { @@ -566,9 +534,11 @@ static void _draw_title(const coord_def& cpos, const feature_list& feats) cgotoxy(1, 1); textcolor(WHITE); + cprintf("%-*s", get_number_of_cols() - helplen, - ("Level " + _level_description_string() + pstr).c_str()); + (upcase_first(place_name( + get_packed_place(), true, true)) + pstr).c_str()); formatted_string s = feats.format(); cgotoxy((get_number_of_cols() - s.length()) / 2, 1); |