sleep vs sounds
Handle sleeping consistently; of the nine places fall_asleep is being called, only one of the them actually affected sounds. The two cases where sleep is used to penalize overexertion aren't affected.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)trap.c 3.4 2002/08/29 */
|
||||
/* SCCS Id: @(#)trap.c 3.4 2002/10/12 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -685,9 +685,7 @@ unsigned trflags;
|
||||
break;
|
||||
}
|
||||
pline("A cloud of gas puts you to sleep!");
|
||||
flags.soundok = 0;
|
||||
fall_asleep(-rnd(25), TRUE);
|
||||
afternmv = Hear_again;
|
||||
#ifdef STEED
|
||||
(void) steedintrap(trap, (struct obj *)0);
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user