comparison xrogue/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 a0a57cf42810
children f54901b9c39b
comparison
equal deleted inserted replaced
169:0d9ebab59a66 170:0298a68cc179
331 overlay(stdscr, cw); /* wizard CTRL(F) */ 331 overlay(stdscr, cw); /* wizard CTRL(F) */
332 overlay(mw, cw); /* wizard CTRL(X) */ 332 overlay(mw, cw); /* wizard CTRL(X) */
333 draw(cw); 333 draw(cw);
334 goto map_jump; /* skip over regular mapping routine */ 334 goto map_jump; /* skip over regular mapping routine */
335 } 335 }
336 if (is_scroll && s_know[S_MAP] != TRUE) { 336 rmmsg();
337 msg("Oh, now this scroll has a map on it.");
338 s_know[S_MAP] = TRUE;
339 }
340 overwrite(stdscr, hw); 337 overwrite(stdscr, hw);
341 /* 338 /*
342 * Take all the things we want to keep hidden out of the window 339 * Take all the things we want to keep hidden out of the window
343 */ 340 */
344 for (i = 1; i < lines-2; i++) 341 for (i = 1; i < lines-2; i++)
376 overlay(cw, hw); 373 overlay(cw, hw);
377 /* 374 /*
378 * And set up for display 375 * And set up for display
379 */ 376 */
380 overwrite(hw, cw); 377 overwrite(hw, cw);
378 draw(cw);
379 if (is_scroll && s_know[S_MAP] != TRUE) {
380 msg("Oh, now this scroll has a map on it.");
381 s_know[S_MAP] = TRUE;
382 }
381 map_jump: /* blessed map jump from above */ 383 map_jump: /* blessed map jump from above */
382 when S_GFIND: 384 when S_GFIND:
383 /* 385 /*
384 * Scroll of gold detection 386 * Scroll of gold detection
385 */ 387 */