Mercurial > hg > early-roguelike
diff xrogue/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 | 23fff8f7b303 |
children | f54901b9c39b |
line wrap: on
line diff
--- a/xrogue/command.c Fri Jun 26 11:42:02 2015 -0400 +++ b/xrogue/command.c Mon Jun 29 20:37:32 2015 -0400 @@ -975,10 +975,10 @@ prev_max = 1000; level--; if (level <= 0) level = 1; - msg("You find yourself in strange surroundings... "); if (wizard) addmsg("Going up through a worm hole. "); take_with(); new_level(OUTSIDE); + msg("You find yourself in strange surroundings... "); return; } @@ -1030,19 +1030,19 @@ prev_max = 1000; /* flag used in n_level.c */ level--; if (level <= 0) level = 1; - msg("You emerge into the %s. ", daytime ? "eerie light" : "dark night"); if (wizard) msg("Going up: cur_max=%d level=%d. ", cur_max, level); take_with(); new_level(OUTSIDE); /* Leaving the dungeon for outside */ + msg("You emerge into the %s. ", daytime ? "eerie light" : "dark night"); return; } else { prev_max = 1; /* flag used in n_level.c */ level = -1; /* Indicate that we are new to the outside */ - msg("You emerge into the %s. ", daytime ? "eerie light" : "dark night"); if (wizard) msg("Going up: cur_max=%d level=%d. ", cur_max, level); take_with(); new_level(OUTSIDE); + msg("You emerge into the %s. ", daytime ? "eerie light" : "dark night"); return; }