fix #M108 - seeing while asleep
I think being asleep or unconscious ought to override vision the way
that being blinded does, but that's a more ambitious change than I care to
tackle. This replaces You("see ...") with You_see("..."), comparable to
You_hear(). It catches the reported door case and several variations of
light sources burning out while on the floor rather than in inventory, but
it probably misses some other cases. zap_over_floor() in particular is
highly suspect.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)mon.c 3.5 2004/06/12 */
|
||||
/* SCCS Id: @(#)mon.c 3.5 2005/06/22 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -2829,7 +2829,7 @@ register boolean silent;
|
||||
if(nct) pline_The("guard%s get%s angry!",
|
||||
nct == 1 ? "" : "s", nct == 1 ? "s" : "");
|
||||
else if(!Blind)
|
||||
You("see %sangry guard%s approaching!",
|
||||
You_see("%sangry guard%s approaching!",
|
||||
sct == 1 ? "an " : "", sct > 1 ? "s" : "");
|
||||
} else if(!Deaf)
|
||||
You_hear("the shrill sound of a guard's whistle.");
|
||||
|
||||
Reference in New Issue
Block a user