diff options
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r-- | crawl-ref/source/output.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index 69f768e4cc..792bf67d41 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -319,10 +319,9 @@ void print_stats(void) clear_to_end_of_line(); gotoxy(xcol, 13); - if (you.equip[EQ_WEAPON] != -1) + if (you.weapon()) { - - const item_def& wpn = you.inv[you.equip[EQ_WEAPON]]; + const item_def& wpn = *you.weapon(); textcolor(wpn.colour); const std::string prefix = menu_colour_item_prefix(wpn); @@ -330,9 +329,7 @@ void print_stats(void) if (prefcol != -1) textcolor(prefcol); - cprintf("%s", - wpn.name(DESC_INVENTORY, - Options.terse_hand).substr(0,38).c_str()); + cprintf("%s", wpn.name(DESC_INVENTORY, true).substr(0,38).c_str()); textcolor(LIGHTGREY); } else |