Mercurial > hg > early-roguelike
comparison arogue7/potions.c @ 171:80c060734f51
arogue7: fix messages from detection potions.
Another fix for overwritten messages, this time for potions of monster
detection and magic detection.
I've made the message appear before the display of information, which
may be closer to the originally intended behavior.
author | John "Elwin" Edwards |
---|---|
date | Thu, 02 Jul 2015 16:27:39 -0400 |
parents | 0d9ebab59a66 |
children | f057f09e9945 |
comparison
equal
deleted
inserted
replaced
170:0298a68cc179 | 171:80c060734f51 |
---|---|
415 monsters[tp->t_index].m_appear); | 415 monsters[tp->t_index].m_appear); |
416 } | 416 } |
417 waddstr(msgw, morestr); | 417 waddstr(msgw, morestr); |
418 clearok(msgw, FALSE); | 418 clearok(msgw, FALSE); |
419 draw(msgw); | 419 draw(msgw); |
420 wait_for(' '); | |
421 msg(""); | |
420 overlay(hw, cw); | 422 overlay(hw, cw); |
421 draw(cw); | 423 draw(cw); |
422 wait_for(' '); | |
423 msg(""); | |
424 if (is_potion) p_know[P_MFIND] = TRUE; | 424 if (is_potion) p_know[P_MFIND] = TRUE; |
425 } | 425 } |
426 else | 426 else |
427 msg("You have a strange feeling for a moment, then it passes."); | 427 msg("You have a strange feeling for a moment, then it passes."); |
428 when P_TFIND: | 428 when P_TFIND: |
482 if (is_potion) p_know[P_TFIND] = TRUE; | 482 if (is_potion) p_know[P_TFIND] = TRUE; |
483 msg("You sense the presence of magic on this level."); | 483 msg("You sense the presence of magic on this level."); |
484 waddstr(msgw, morestr); | 484 waddstr(msgw, morestr); |
485 clearok(msgw, FALSE); | 485 clearok(msgw, FALSE); |
486 draw(msgw); | 486 draw(msgw); |
487 wait_for(' '); | |
488 msg(""); | |
487 overlay(hw,cw); | 489 overlay(hw,cw); |
488 draw(cw); | 490 draw(cw); |
489 wait_for(' '); | |
490 msg(""); | |
491 break; | 491 break; |
492 } | 492 } |
493 else | 493 else |
494 msg("You have a strange feeling for a moment, then it passes."); | 494 msg("You have a strange feeling for a moment, then it passes."); |
495 } | 495 } |