summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/directn.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-11-15 22:10:59 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-11-15 23:11:42 +0100
commitf5b0269efde99613163d99346035b53a82661ceb (patch)
treedbad60ddd46b386acaf163f188e69c6809c20ae1 /crawl-ref/source/directn.cc
parentfe2ab0f017464ff07a3d62e994861ea17260b260 (diff)
downloadcrawl-ref-f5b0269efde99613163d99346035b53a82661ceb.tar.gz
crawl-ref-f5b0269efde99613163d99346035b53a82661ceb.zip
Replace get_show_symbol by get_show_glyph.
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r--crawl-ref/source/directn.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc
index 496cef14c2..4293da9428 100644
--- a/crawl-ref/source/directn.cc
+++ b/crawl-ref/source/directn.cc
@@ -673,15 +673,12 @@ void full_describe_view()
std::string desc = "";
#ifndef USE_TILE
const coord_def e = c - you.pos() + coord_def(8,8);
- show_type object = env.show(e);
- unsigned short col = object.colour;
- unsigned ch;
- get_show_symbol(object, &ch, &col);
- const std::string colour_str = colour_to_str(col);
+ glyph g = get_show_glyph(env.show(e));
+ const std::string colour_str = colour_to_str(g.col);
desc = "(<" + colour_str + ">";
- desc += stringize_glyph(ch);
- if (ch == '<')
+ desc += stringize_glyph(g.ch);
+ if (g.ch == '<')
desc += '<';
desc += "</" + colour_str +">) ";