diff options
Diffstat (limited to 'crawl-ref/source/libw32c.cc')
-rw-r--r-- | crawl-ref/source/libw32c.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/crawl-ref/source/libw32c.cc b/crawl-ref/source/libw32c.cc index 36cc261851..18eb36cbac 100644 --- a/crawl-ref/source/libw32c.cc +++ b/crawl-ref/source/libw32c.cc @@ -617,20 +617,23 @@ static void scroll_message_window() cgotoxy(wherex(), wherey() - 1); } -void message_out(int which_line, int colour, const char *s, int firstcol, - bool newline) +void message_out(int *which_line, int colour, const char *s, int firstcol) { if (!firstcol) firstcol = Options.delay_message_clear? 2 : 1; + while (*which_line > crawl_view.msgsz.y - 1) + { + scroll_message_window(); + (*which_line)--; + } + cgotoxy(firstcol - 1 + crawl_view.msgp.x, which_line + crawl_view.msgp.y); textcolor(colour); cprintf("%s", s); - if (newline && which_line == crawl_view.msgsz.y - 1) - scroll_message_window(); } static void cprintf_aux(const char *s) |