comparison arogue7/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 b786053d2f37
children 1cd604c827a3
comparison
equal deleted inserted replaced
169:0d9ebab59a66 170:0298a68cc179
289 if (is_scroll) s_know[S_IDENT] = TRUE; 289 if (is_scroll) s_know[S_IDENT] = TRUE;
290 when S_MAP: 290 when S_MAP:
291 /* 291 /*
292 * Scroll of magic mapping. 292 * Scroll of magic mapping.
293 */ 293 */
294 if (is_scroll && s_know[S_MAP] != TRUE) { 294 waddstr(msgw, morestr);
295 msg("Oh, now this scroll has a map on it."); 295 clearok(msgw, FALSE);
296 s_know[S_MAP] = TRUE; 296 draw(msgw);
297 } 297 wait_for(' ');
298 msg("");
298 overwrite(stdscr, hw); 299 overwrite(stdscr, hw);
299 /* 300 /*
300 * Take all the things we want to keep hidden out of the window 301 * Take all the things we want to keep hidden out of the window
301 */ 302 */
302 for (i = 1; i < lines-2; i++) 303 for (i = 1; i < lines-2; i++)
334 overlay(cw, hw); 335 overlay(cw, hw);
335 /* 336 /*
336 * And set up for display 337 * And set up for display
337 */ 338 */
338 overwrite(hw, cw); 339 overwrite(hw, cw);
340 draw(cw);
341 if (is_scroll && s_know[S_MAP] != TRUE) {
342 msg("Oh, now this scroll has a map on it.");
343 s_know[S_MAP] = TRUE;
344 }
339 when S_GFIND: 345 when S_GFIND:
340 /* 346 /*
341 * Scroll of gold detection 347 * Scroll of gold detection
342 */ 348 */
343 { 349 {
365 } 371 }
366 } 372 }
367 } 373 }
368 if (gtotal) { 374 if (gtotal) {
369 if (is_scroll) s_know[S_GFIND] = TRUE; 375 if (is_scroll) s_know[S_GFIND] = TRUE;
370 msg("You begin to feel greedy and you sense gold.");
371 waddstr(msgw, morestr); 376 waddstr(msgw, morestr);
372 clearok(msgw, FALSE); 377 clearok(msgw, FALSE);
373 draw(msgw); 378 draw(msgw);
379 wait_for(' ');
380 msg("");
374 overlay(hw, cw); 381 overlay(hw, cw);
375 draw(cw); 382 draw(cw);
376 wait_for(' '); 383 msg("You begin to feel greedy and you sense gold.");
377 msg("");
378 break; 384 break;
379 } 385 }
380 } 386 }
381 msg("You begin to feel a pull downward"); 387 msg("You begin to feel a pull downward");
382 when S_TELEP: 388 when S_TELEP: