diff 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
line wrap: on
line diff
--- a/arogue5/command.c	Fri Jun 26 11:42:02 2015 -0400
+++ b/arogue5/command.c	Mon Jun 29 20:37:32 2015 -0400
@@ -817,8 +817,8 @@
     if (level > 0) new_level(NORMLEV);
     else {
 	level = -1;	/* Indicate that we are new to the outside */
+	new_level(OUTSIDE); 	/* Leaving the dungeon */
 	msg("You emerge into the %s", daytime ? "light" : "night");
-	new_level(OUTSIDE); 	/* Leaving the dungeon */
     }
 
     if (no_phase) unphase();