Mercurial > hg > early-roguelike
comparison arogue7/potions.c @ 169:0d9ebab59a66
arogue7: fix messages from potions of food detection.
Updates to the screen took place in the wrong order, causing messages
and "--More--" prompts to be hidden before they could be seen.
There are probably similar bugs caused by other items.
author | John "Elwin" Edwards |
---|---|
date | Tue, 30 Jun 2015 15:32:32 -0400 |
parents | b786053d2f37 |
children | 80c060734f51 |
comparison
equal
deleted
inserted
replaced
168:82b2a046d151 | 169:0d9ebab59a66 |
---|---|
660 } | 660 } |
661 } | 661 } |
662 if (show) { | 662 if (show) { |
663 if (is_potion) p_know[P_FFIND] = TRUE; | 663 if (is_potion) p_know[P_FFIND] = TRUE; |
664 msg("Your nose tingles."); | 664 msg("Your nose tingles."); |
665 msg("You sense the presence of food on this level."); | |
666 waddstr(msgw, morestr); | 665 waddstr(msgw, morestr); |
667 clearok(msgw, FALSE); | 666 clearok(msgw, FALSE); |
668 draw(msgw); | 667 draw(msgw); |
668 wait_for(' '); | |
669 msg(""); | |
669 overlay(hw,cw); | 670 overlay(hw,cw); |
670 draw(cw); | 671 draw(cw); |
671 wait_for(' '); | 672 msg("You sense the presence of food on this level."); |
672 msg(""); | |
673 } | 673 } |
674 else | 674 else |
675 msg("You have a strange feeling for a moment, then it passes."); | 675 msg("You have a strange feeling for a moment, then it passes."); |
676 } | 676 } |
677 | 677 |