redundant or inconsistent msleeping handling

Eliminate some redundant monster sleep handling pointed out by <email deleted>.  I'm not sure if this is the right fix for mattackm(),
but the wakeup-after-hit was definitely wrong for the case where that hit
put the target to sleep.  (I didn't try to make that actually take place
but it is a possible outcome of monster-against-monster combat.)
This commit is contained in:
nethack.rankin
2007-02-08 05:04:33 +00:00
parent 128ed0f0be
commit 6b2078f89c
3 changed files with 5 additions and 14 deletions

View File

@@ -1,4 +1,4 @@
/* SCCS Id: @(#)wizard.c 3.5 2006/09/06 */
/* SCCS Id: @(#)wizard.c 3.5 2007/02/07 */
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
/* NetHack may be freely redistributed. See license for details. */
@@ -507,7 +507,7 @@ resurrect()
}
if (mtmp) {
mtmp->msleeping = mtmp->mtame = mtmp->mpeaceful = 0;
mtmp->mtame = mtmp->mpeaceful = 0; /* paranoia */
set_malign(mtmp);
if (!Deaf) {
pline("A voice booms out...");