Mercurial > hg > early-roguelike
comparison arogue5/potions.c @ 77:ae7643e1194b
arogue5: fix "More" prompt appearing in the wrong place.
The magic and monster detection routines printed "--More--" to cw
instead of msgw, making it appear at the @-sign instead of on the top
line.
author | John "Elwin" Edwards <elwin@sdf.org> |
---|---|
date | Sun, 09 Sep 2012 08:55:11 -0700 |
parents | ad2cb9a07aaa |
children | 34a87d84ea31 |
comparison
equal
deleted
inserted
replaced
76:ad2cb9a07aaa | 77:ae7643e1194b |
---|---|
392 * Potion of monster detection, if there are monters, detect them | 392 * Potion of monster detection, if there are monters, detect them |
393 */ | 393 */ |
394 if (mlist != NULL) | 394 if (mlist != NULL) |
395 { | 395 { |
396 msg("You begin to sense the presence of monsters."); | 396 msg("You begin to sense the presence of monsters."); |
397 waddstr(cw, morestr); | 397 waddstr(msgw, morestr); |
398 overlay(mw, cw); | 398 overlay(mw, cw); |
399 draw(cw); | 399 draw(cw); |
400 wait_for(cw,' '); | 400 wait_for(cw,' '); |
401 msg(""); | 401 msg(""); |
402 if (is_potion) p_know[P_MFIND] = TRUE; | 402 if (is_potion) p_know[P_MFIND] = TRUE; |
458 if (is_potion) p_know[P_TFIND] = TRUE; | 458 if (is_potion) p_know[P_TFIND] = TRUE; |
459 } | 459 } |
460 } | 460 } |
461 if (show) { | 461 if (show) { |
462 msg("You sense the presence of magic on this level."); | 462 msg("You sense the presence of magic on this level."); |
463 waddstr(cw, morestr); | 463 waddstr(msgw, morestr); |
464 overlay(hw,cw); | 464 overlay(hw,cw); |
465 draw(cw); | 465 draw(cw); |
466 wait_for(cw,' '); | 466 wait_for(cw,' '); |
467 msg(""); | 467 msg(""); |
468 break; | 468 break; |