comparison arogue7/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 0c775afe0072
children 1cd604c827a3
comparison
equal deleted inserted replaced
166:9b5f1e6aa35a 167:a0a57cf42810
1003 1003
1004 if (levtype != POSTLEV) level--; 1004 if (levtype != POSTLEV) level--;
1005 if (level > 0) new_level(NORMLEV); 1005 if (level > 0) new_level(NORMLEV);
1006 else { 1006 else {
1007 level = -1; /* Indicate that we are new to the outside */ 1007 level = -1; /* Indicate that we are new to the outside */
1008 new_level(OUTSIDE); /* Leaving the dungeon */
1008 msg("You emerge into the %s", daytime ? "light" : "night"); 1009 msg("You emerge into the %s", daytime ? "light" : "night");
1009 new_level(OUTSIDE); /* Leaving the dungeon */
1010 } 1010 }
1011 1011
1012 if (no_phase) unphase(); 1012 if (no_phase) unphase();
1013 } 1013 }
1014 1014