diff options
author | Adam Borowski <kilobyte@angband.pl> | 2010-09-26 02:44:06 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2010-09-26 02:44:06 +0200 |
commit | 8083632f65832778889f5f5ec1a18f06f8caac40 (patch) | |
tree | be653b81803cf73acfe41a56e58e58cc3628fea7 /crawl-ref/source/feature.h | |
parent | 1c07180018c8183adbfa4618d59d55b451a2e35e (diff) | |
download | crawl-ref-8083632f65832778889f5f5ec1a18f06f8caac40.tar.gz crawl-ref-8083632f65832778889f5f5ec1a18f06f8caac40.zip |
Always use Unicode values for glyphs. Always use ncursesw on Unix console.
CSET_IBM and CSET_DEC are now merely presets and don't change the I/O encoding.
Doing I/O using any encoding other than the one configured using LANG/LC_* is
just wrong and no well-behaving program should do that.
This does require changes on CAO/CDO, but they would fix problems with ttyrec
and spectating as well.
To fix: ncursesw replaces unrepresentable characters with spaces, we'll have
to replace them by hand.
Diffstat (limited to 'crawl-ref/source/feature.h')
-rw-r--r-- | crawl-ref/source/feature.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/feature.h b/crawl-ref/source/feature.h index aed7e53c92..5fee77451a 100644 --- a/crawl-ref/source/feature.h +++ b/crawl-ref/source/feature.h @@ -6,8 +6,8 @@ struct feature_def { dungeon_char_type dchar; - unsigned symbol; // symbol used for seen terrain - unsigned magic_symbol; // symbol used for magic-mapped terrain + ucs_t symbol; // symbol used for seen terrain + ucs_t magic_symbol; // symbol used for magic-mapped terrain unsigned short colour; // normal in LoS colour unsigned short map_colour; // colour when out of LoS on display unsigned short seen_colour; // map_colour when env.map_knowledge().seen() |