From c1de3fc787a24a7c75afca420e1144c11490c000 Mon Sep 17 00:00:00 2001 From: Adam Borowski Date: Wed, 13 Jan 2010 23:35:09 +0100 Subject: Fix a throwback to the 8-bit era in "Items here: +++ /// ))". --- crawl-ref/source/items.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc index 57adb82b8c..7d52402992 100644 --- a/crawl-ref/source/items.cc +++ b/crawl-ref/source/items.cc @@ -62,6 +62,7 @@ #include "terrain.h" #include "travel.h" #include "tutorial.h" +#include "viewchar.h" #include "viewgeom.h" #include "xom.h" @@ -686,7 +687,7 @@ void item_check(bool verbose) if (static_cast(items.size()) >= Options.item_stack_summary_minimum) { - std::vector item_chars; + std::vector item_chars; for (unsigned int i = 0; i < items.size() && i < 50; ++i) { glyph g = get_item_glyph(items[i]); @@ -712,7 +713,7 @@ void item_check(bool verbose) cur_state = specialness; } - out_string += static_cast(item_chars[i] / 0x100); + out_string += stringize_glyph(item_chars[i] / 0x100); if (i + 1 < item_chars.size() && (item_chars[i] / 0x100) != (item_chars[i+1] / 0x100)) { -- cgit v1.2.3-54-g00ecf