comparison 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
comparison
equal deleted inserted replaced
169:0d9ebab59a66 170:0298a68cc179
315 when S_MAP: 315 when S_MAP:
316 /* 316 /*
317 * Scroll of magic mapping. 317 * Scroll of magic mapping.
318 */ 318 */
319 if (is_scroll && s_know[S_MAP] != TRUE) { 319 if (is_scroll && s_know[S_MAP] != TRUE) {
320 msg("Oh, now this scroll has a map on it."); 320 waddstr(msgw, morestr);
321 s_know[S_MAP] = TRUE; 321 draw(msgw);
322 wait_for(msgw, ' ');
323 msg("");
322 } 324 }
323 overwrite(stdscr, hw); 325 overwrite(stdscr, hw);
324 /* 326 /*
325 * Take all the things we want to keep hidden out of the window 327 * Take all the things we want to keep hidden out of the window
326 */ 328 */
359 overlay(cw, hw); 361 overlay(cw, hw);
360 /* 362 /*
361 * And set up for display 363 * And set up for display
362 */ 364 */
363 overwrite(hw, cw); 365 overwrite(hw, cw);
366 draw(cw);
367 if (is_scroll && s_know[S_MAP] != TRUE) {
368 msg("Oh, now this scroll has a map on it.");
369 s_know[S_MAP] = TRUE;
370 }
364 when S_GFIND: 371 when S_GFIND:
365 /* 372 /*
366 * Scroll of gold detection 373 * Scroll of gold detection
367 */ 374 */
368 if (lvl_obj != NULL) { 375 if (lvl_obj != NULL) {
378 mvwaddch(hw, cur->o_pos.y, cur->o_pos.x, GOLD); 385 mvwaddch(hw, cur->o_pos.y, cur->o_pos.x, GOLD);
379 } 386 }
380 } 387 }
381 if (gtotal) { 388 if (gtotal) {
382 if (is_scroll) s_know[S_GFIND] = TRUE; 389 if (is_scroll) s_know[S_GFIND] = TRUE;
390 waddstr(msgw, morestr);
391 draw(msgw);
392 wait_for(msgw, ' ');
393 msg("");
394 overlay(hw,cw);
395 draw(cw);
383 msg("You begin to feel greedy and you sense gold."); 396 msg("You begin to feel greedy and you sense gold.");
384 overlay(hw,cw);
385 break; 397 break;
386 } 398 }
387 } 399 }
388 msg("You begin to feel a pull downward"); 400 msg("You begin to feel a pull downward");
389 when S_TELEP: 401 when S_TELEP: