summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/format.cc
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-17 16:21:27 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-08-17 16:21:27 +0000
commit32ddb09f0132e3ef0f99092c7856a7f2e9b8563a (patch)
treeae3efbbc015db02976428517a9e8265b3970b522 /crawl-ref/source/format.cc
parentcb1a4eab762f953396c49c15fb178e2f47d56105 (diff)
downloadcrawl-ref-32ddb09f0132e3ef0f99092c7856a7f2e9b8563a.tar.gz
crawl-ref-32ddb09f0132e3ef0f99092c7856a7f2e9b8563a.zip
[1775520] Sling bullets are no longer throwable.
Fixed formatted_string's add_glyph methods not handling wide characters. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2008 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/format.cc')
-rw-r--r--crawl-ref/source/format.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/format.cc b/crawl-ref/source/format.cc
index 2b77fc0bab..595d2a3f85 100644
--- a/crawl-ref/source/format.cc
+++ b/crawl-ref/source/format.cc
@@ -240,7 +240,7 @@ void formatted_string::add_glyph(const item_def *item)
unsigned short col;
get_item_glyph(item, &ch, &col);
this->textcolor(col);
- this->cprintf("%c", ch);
+ this->cprintf("%s", stringize_glyph(ch).c_str());
this->textcolor(last_col);
}
@@ -251,7 +251,7 @@ void formatted_string::add_glyph(const monsters *mons)
unsigned short col;
get_mons_glyph(mons, &ch, &col);
this->textcolor(col);
- this->cprintf("%c", ch);
+ this->cprintf("%s", stringize_glyph(ch).c_str());
this->textcolor(last_col);
}