diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-28 18:05:35 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-02-28 18:05:35 +0000 |
commit | 966c3e5d505b1be9b4e5fd811810a64a7416a110 (patch) | |
tree | 05159dfd5dc66e804a690d8bd1385916c47dea70 /crawl-ref/source/tutorial.cc | |
parent | 0b15bc15b875aeb04c2aa22d0fe6e4d13b193fac (diff) | |
download | crawl-ref-966c3e5d505b1be9b4e5fd811810a64a7416a110.tar.gz crawl-ref-966c3e5d505b1be9b4e5fd811810a64a7416a110.zip |
Fix recursive loops for flushing messages when more() is calling getch()
by adding a boolean to keep track on whether we already called
flush_prev_message() this round, reset once a new message is pushed into
prev_message. There's probably a better solution, but this one works
well enough.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9285 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/tutorial.cc')
-rw-r--r-- | crawl-ref/source/tutorial.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/crawl-ref/source/tutorial.cc b/crawl-ref/source/tutorial.cc index b56cf483ab..33e51eb159 100644 --- a/crawl-ref/source/tutorial.cc +++ b/crawl-ref/source/tutorial.cc @@ -2794,8 +2794,9 @@ void learned_something_new(tutorial_event_type seen_what, coord_def gc) if (you.religion != GOD_NO_GOD) listed.push_back("your religious standing (<w>^</w>)"); - listed.push_back("the character overview screen (<w>%</w>)."); - text << comma_separated_line(listed.begin(), listed.end()); + listed.push_back("the message history (<w>Ctrl-P</w>)"); + listed.push_back("the character overview screen (<w>%</w>)"); + text << comma_separated_line(listed.begin(), listed.end()) << "."; text << "\nAlternatively, you can dump all information pertaining to " "your character into a text file with the <w>#</w> command. " |