comparison rogue4/things.c @ 244:ded75a57405c

Rogue V4, V5: fix messages when viewing the identified items. The functions for displaying the list of identified items begin by prompting for the category of item, using msg(). Rogue V4 left this prompt on the screen after displaying the discovery list. Rogue V5 erased the message window even if the process of printing the list created another message which the player had not read. Messages are now cleared in endline(), which is capable of checking whether clearing should be done.
author John "Elwin" Edwards
date Sun, 24 Apr 2016 13:33:17 -0400
parents 2dcf10d45d5b
children 0250220d8cdd
comparison
equal deleted inserted replaced
243:8ee1c19d6f99 244:ded75a57405c
576 */ 576 */
577 void 577 void
578 end_line(void) 578 end_line(void)
579 { 579 {
580 if (!slow_invent) 580 if (!slow_invent)
581 {
581 if (line_cnt == 1 && !newpage) 582 if (line_cnt == 1 && !newpage)
582 { 583 {
583 mpos = 0; 584 mpos = 0;
584 msg(lastfmt, lastarg); 585 msg(lastfmt, lastarg);
585 } 586 }
586 else 587 else
588 {
587 add_line(NULL, NULL); 589 add_line(NULL, NULL);
590 msg("");
591 }
592 }
588 line_cnt = 0; 593 line_cnt = 0;
589 newpage = FALSE; 594 newpage = FALSE;
590 } 595 }
591 596
592 /* 597 /*