summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/items.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-15 21:19:26 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-15 23:11:41 +0100
commitddf80f7077a00bd04168c904b153fb1e657b9d38 (patch)
tree4b5d1b094e46b731f03b3665f4526bb6ed9c37dc /crawl-ref/source/items.cc
parentc6c0a0f71e0d459b8438ff2e998fbedcb9c1c99a (diff)
downloadcrawl-ref-ddf80f7077a00bd04168c904b153fb1e657b9d38.tar.gz
crawl-ref-ddf80f7077a00bd04168c904b153fb1e657b9d38.zip
Convert get_item_glyph to return a glyph struct.
Also don't use get_symbol.
Diffstat (limited to 'crawl-ref/source/items.cc')
-rw-r--r--crawl-ref/source/items.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/crawl-ref/source/items.cc b/crawl-ref/source/items.cc
index 9c012ee199..73751e1ab0 100644
--- a/crawl-ref/source/items.cc
+++ b/crawl-ref/source/items.cc
@@ -690,11 +690,10 @@ void item_check(bool verbose)
std::vector<unsigned short int> item_chars;
for (unsigned int i = 0; i < items.size() && i < 50; ++i)
{
- unsigned glyph_char;
- unsigned short glyph_col;
- get_item_glyph( items[i], &glyph_char, &glyph_col );
- item_chars.push_back( glyph_char * 0x100 +
- (10 - item_name_specialness(*(items[i]))) );
+ glyph g = get_item_glyph(items[i]);
+ get_item_glyph(items[i]);
+ item_chars.push_back(g.ch * 0x100 +
+ (10 - item_name_specialness(*(items[i]))));
}
std::sort(item_chars.begin(), item_chars.end());