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.
This commit is contained in:
John "Elwin" Edwards 2015-07-02 08:04:16 -04:00
parent 366f2a27a8
commit c864015af9
3 changed files with 34 additions and 14 deletions

View file

@ -291,10 +291,11 @@ bool is_scroll;
/*
* 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);
clearok(msgw, FALSE);
draw(msgw);
wait_for(' ');
msg("");
overwrite(stdscr, hw);
/*
* Take all the things we want to keep hidden out of the window
@ -336,6 +337,11 @@ bool is_scroll;
* 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
@ -367,14 +373,14 @@ bool is_scroll;
}
if (gtotal) {
if (is_scroll) s_know[S_GFIND] = TRUE;
msg("You begin to feel greedy and you sense gold.");
waddstr(msgw, morestr);
clearok(msgw, FALSE);
draw(msgw);
overlay(hw, cw);
draw(cw);
wait_for(' ');
msg("");
overlay(hw, cw);
draw(cw);
msg("You begin to feel greedy and you sense gold.");
break;
}
}