summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/message.cc
diff options
context:
space:
mode:
authorRobert Vollmert <rvollmert@gmx.net>2009-12-17 10:08:26 +0100
committerRobert Vollmert <rvollmert@gmx.net>2009-12-17 10:08:26 +0100
commit795d91157c2388fa481dd6341251a7f79a44bdd8 (patch)
tree9fb7a5b824f9cdb48dae0eb3f91f9f0cfb6634a4 /crawl-ref/source/message.cc
parentf47020b3d8a4b557b3067c818388fedd4e558cd8 (diff)
downloadcrawl-ref-795d91157c2388fa481dd6341251a7f79a44bdd8.tar.gz
crawl-ref-795d91157c2388fa481dd6341251a7f79a44bdd8.zip
A different fix to --more-- overwriting the last line.
This should remove the current abundance of more prompts.
Diffstat (limited to 'crawl-ref/source/message.cc')
-rw-r--r--crawl-ref/source/message.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/crawl-ref/source/message.cc b/crawl-ref/source/message.cc
index 838683b776..d0fc3e7e9f 100644
--- a/crawl-ref/source/message.cc
+++ b/crawl-ref/source/message.cc
@@ -712,7 +712,7 @@ static void mpr_store_messages(const std::string& message,
// Prompt lines are presumably shown to / seen by the player accompanied
// by a request for input, which should do the equivalent of a more(); to
// save annoyance, don't bump New_Message_Count for prompts.
- if (channel != MSGCH_PROMPT)
+ if (channel != MSGCH_PROMPT || New_Message_Count > 0)
New_Message_Count++;
Message_Line++;
@@ -1077,11 +1077,7 @@ void more(bool user_forced)
int keypress = 0;
- int line = crawl_view.msgsz.y - 1;
-
- // Force scroll.
- if (Options.delay_message_clear)
- line++;
+ int line = std::max(Message_Line, crawl_view.msgsz.y - 1);
if (Tutorial.tutorial_left)
{