diff arogue5/scrolls.c @ 170:0298a68cc179

Advanced Rogue family: fix messages from some scrolls. When scrolls of magic mapping or gold detection were read, their characteristic messages were displayed before overwriting the whole screen to show the newly discovered information. They are now shown after updating the screen, so they will be visible.
author John "Elwin" Edwards
date Thu, 02 Jul 2015 08:04:16 -0400
parents ad2cb9a07aaa
children 56e748983fa8
line wrap: on
line diff
--- a/arogue5/scrolls.c	Tue Jun 30 15:32:32 2015 -0400
+++ b/arogue5/scrolls.c	Thu Jul 02 08:04:16 2015 -0400
@@ -317,8 +317,10 @@
 	     * Scroll of magic mapping.
 	     */
 	    if (is_scroll && s_know[S_MAP] != TRUE) {
-		msg("Oh, now this scroll has a map on it.");
-		s_know[S_MAP] = TRUE;
+	        waddstr(msgw, morestr);
+                draw(msgw);
+                wait_for(msgw, ' ');
+	        msg("");
 	    }
 	    overwrite(stdscr, hw);
 	    /*
@@ -361,6 +363,11 @@
 	     * And set up for display
 	     */
 	    overwrite(hw, cw);
+            draw(cw);
+	    if (is_scroll && s_know[S_MAP] != TRUE) {
+		msg("Oh, now this scroll has a map on it.");
+		s_know[S_MAP] = TRUE;
+            }
 	when S_GFIND:
 	    /*
 	     * Scroll of gold detection
@@ -380,8 +387,13 @@
 		}
 		if (gtotal) {
 		    if (is_scroll) s_know[S_GFIND] = TRUE;
+		    waddstr(msgw, morestr);
+                    draw(msgw);
+                    wait_for(msgw, ' ');
+		    msg("");
+		    overlay(hw,cw);
+                    draw(cw);
 		    msg("You begin to feel greedy and you sense gold.");
-		    overlay(hw,cw);
 		    break;
 		}
 	    }