comparison arogue5/command.c @ 167:a0a57cf42810

ARogue family: don't hide messages caused by moving to a new level. new_level() redraws the whole screen, including the message line, so if msg() has just been called, the message will likely not last long enough to be noticed. These cases have been changed so that msg() is called after new_level(). If a fall through a trapdoor is fatal, "You fall into a trap!" is no longer printed, but the tombstone should make things clear.
author John "Elwin" Edwards
date Mon, 29 Jun 2015 20:37:32 -0400
parents dfeed24bb616
children 56e748983fa8
comparison
equal deleted inserted replaced
166:9b5f1e6aa35a 167:a0a57cf42810
815 815
816 if (levtype != POSTLEV) level--; 816 if (levtype != POSTLEV) level--;
817 if (level > 0) new_level(NORMLEV); 817 if (level > 0) new_level(NORMLEV);
818 else { 818 else {
819 level = -1; /* Indicate that we are new to the outside */ 819 level = -1; /* Indicate that we are new to the outside */
820 new_level(OUTSIDE); /* Leaving the dungeon */
820 msg("You emerge into the %s", daytime ? "light" : "night"); 821 msg("You emerge into the %s", daytime ? "light" : "night");
821 new_level(OUTSIDE); /* Leaving the dungeon */
822 } 822 }
823 823
824 if (no_phase) unphase(); 824 if (no_phase) unphase();
825 } 825 }
826 826