summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/format.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-12-01 09:19:17 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-12-01 09:25:49 +0100
commit5d616ec6450d21982c204869e04dc4735bc0e88a (patch)
tree788e1352c32ed27f84b3de97574a22b9bca352ad /crawl-ref/source/format.cc
parent756ebe7bf6c26c2d2db98cb8725eda00e546fccb (diff)
downloadcrawl-ref-5d616ec6450d21982c204869e04dc4735bc0e88a.tar.gz
crawl-ref-5d616ec6450d21982c204869e04dc4735bc0e88a.zip
Add general formatted_string::add_glyph, remove others.
Diffstat (limited to 'crawl-ref/source/format.cc')
-rw-r--r--crawl-ref/source/format.cc12
1 files changed, 1 insertions, 11 deletions
diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc
index 69e8b9be5a..a65613adff 100644
--- a/crawl-ref/source/format.cc
+++ b/crawl-ref/source/format.cc
@@ -491,19 +491,9 @@ formatted_string formatted_string::substr(size_t start, size_t substr_length) co
return result;
}
-void formatted_string::add_glyph(const item_def *item)
+void formatted_string::add_glyph(glyph g)
{
const int last_col = find_last_colour();
- glyph g = get_item_glyph(item);
- this->textcolor(g.col);
- this->cprintf("%s", stringize_glyph(g.ch).c_str());
- this->textcolor(last_col);
-}
-
-void formatted_string::add_glyph(const monsters *mons)
-{
- const int last_col = find_last_colour();
- glyph g = get_mons_glyph(mons);
this->textcolor(g.col);
this->cprintf("%s", stringize_glyph(g.ch).c_str());
this->textcolor(last_col);