Mercurial > hg > early-roguelike
diff 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 |
line wrap: on
line diff
--- a/xrogue/scrolls.c Tue Jun 30 15:32:32 2015 -0400 +++ b/xrogue/scrolls.c Thu Jul 02 08:04:16 2015 -0400 @@ -333,10 +333,7 @@ draw(cw); goto map_jump; /* skip over regular mapping routine */ } - if (is_scroll && s_know[S_MAP] != TRUE) { - msg("Oh, now this scroll has a map on it."); - s_know[S_MAP] = TRUE; - } + rmmsg(); overwrite(stdscr, hw); /* * Take all the things we want to keep hidden out of the window @@ -378,6 +375,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; + } map_jump: /* blessed map jump from above */ when S_GFIND: /*