diff options
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r-- | crawl-ref/source/output.cc | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index 0c7e129b14..30ab854b2e 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -1344,6 +1344,24 @@ void monster_pane_info::to_string( int count, std::string& desc, desc = out.str(); } +static char _mlist_index_to_letter(int index) +{ + index += 'a'; + + if (index >= 'b') + index++; + if (index >= 'h') + index++; + if (index >= 'j') + index++; + if (index >= 'k') + index++; + if (index >= 'l') + index++; + + return (index); +} + static void _print_next_monster_desc(const std::vector<monster_pane_info>& mons, int& start, bool zombified = false, int idx = -1) @@ -1366,7 +1384,7 @@ static void _print_next_monster_desc(const std::vector<monster_pane_info>& mons, if (idx >= 0) { textcolor(WHITE); - cprintf( stringize_glyph('a' + idx).c_str() ); + cprintf( stringize_glyph(_mlist_index_to_letter(idx)).c_str() ); cprintf(" - "); printed += 4; } |