diff options
author | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-07 17:32:26 +0000 |
---|---|---|
committer | dshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573> | 2007-06-07 17:32:26 +0000 |
commit | ee653d2656b747a8b8426fafc55c7c1cff008871 (patch) | |
tree | 527f7ed8f8a53532963f8d5eeb18fc91acf3c193 /crawl-ref/source/tutorial.cc | |
parent | 23931ce20599deb7cac821f41964d232855e7133 (diff) | |
download | crawl-ref-ee653d2656b747a8b8426fafc55c7c1cff008871.tar.gz crawl-ref-ee653d2656b747a8b8426fafc55c7c1cff008871.zip |
Added support for Unicode characters in the map display with ncursesw (enabled
by setting UNICODE_GLYPHS=y in makefile.unix).
Removed the (1,1) offset between map and grid. Both map and grid are now in
sync.
Store object indexes instead of raw characters in env.map so that players can
change charsets and have the display update immediately.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1552 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r-- | crawl-ref/source/tutorial.cc | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc index 4c6310ae92..798c3c10c1 100644 --- a/crawl-ref/source/tutorial.cc +++ b/crawl-ref/source/tutorial.cc @@ -802,7 +802,8 @@ void tutorial_first_monster(const monsters& mon) if (!Options.tutorial_events[TUT_SEEN_MONSTER]) return; - unsigned short ch, col; + unsigned ch; + unsigned short col; get_mons_glyph(&mon, &ch, &col); std::string text = "<magenta>That "; @@ -849,10 +850,14 @@ void tutorial_first_monster(const monsters& mon) void tutorial_first_item(const item_def& item) { - if (!Options.tutorial_events[TUT_SEEN_FIRST_OBJECT] || Options.tut_just_triggered) + if (!Options.tutorial_events[TUT_SEEN_FIRST_OBJECT] + || Options.tut_just_triggered) + { return; + } - unsigned short ch, col; + unsigned ch; + unsigned short col; get_item_glyph(&item, &ch, &col); std::string text = "<magenta>That "; @@ -882,7 +887,8 @@ void learned_something_new(tutorial_event_type seen_what, int x, int y) return; std::ostringstream text; - unsigned short ch, colour; + unsigned ch; + unsigned short colour; const int ex = x - you.x_pos + 9; const int ey = y - you.y_pos + 9; int object; |