summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/kills.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2011-09-07 13:49:31 +0200
committerAdam Borowski <kilobyte@angband.pl>2011-09-07 13:49:31 +0200
commitf99166ed9de3901010fe6544640203d690b79776 (patch)
tree1b7a740a1fab0068489d40c67369e23ce68319e3 /crawl-ref/source/kills.cc
parentf6e9619284a9e56d9a2068c38a553d9a15cf9e1a (diff)
downloadcrawl-ref-f99166ed9de3901010fe6544640203d690b79776.tar.gz
crawl-ref-f99166ed9de3901010fe6544640203d690b79776.zip
Fix glyph truncation on platforms with 16 bit wchar_t.
This can matter only for cygwin, though.
Diffstat (limited to 'crawl-ref/source/kills.cc')
-rw-r--r--crawl-ref/source/kills.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/kills.cc b/crawl-ref/source/kills.cc
index 51dc97d472..884fe3a8c8 100644
--- a/crawl-ref/source/kills.cc
+++ b/crawl-ref/source/kills.cc
@@ -833,8 +833,8 @@ static int kill_lualc_symbol(lua_State *ls)
kill_exp *ke = static_cast<kill_exp*>(lua_touserdata(ls, 1));
if (ke)
{
- wchar_t ch = ke->monnum != -1?
- mons_char(ke->monnum) :
+ ucs_t ch = ke->monnum != -1?
+ mons_char(ke->monnum) :
is_ghost(ke)? 'p' : '&';
if (ke->monnum == MONS_PROGRAM_BUG)