From: cohrs Date: Thu, 21 Aug 2003 19:10:06 +0000 (+0000) Subject: blinded/unblinded message every turn while engulfed wearing the Eyes X-Git-Tag: MOVE2GIT~1840 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=729e9cc03b49524c2be73068a28d70d5942bce9a;p=nethack blinded/unblinded message every turn while engulfed wearing the Eyes I think this was From a bug report, but I cannot find the report anymore. Perhaps I noticed it while doing something else. In any case, every turn you're engulfed in, say, a dust vortex wearing the Eyes of the Overworld, you get the "can't see"/"vision clears" message pair. This patch modifies the behavior to only display this the first turn. Other code, partially related to B01003, already deals with the puton-remove cases. Since B01003 is only in the trunk, this fix is also only in the trunk. --- diff --git a/src/mhitu.c b/src/mhitu.c index 724bc36c7..039e6dc3a 100644 --- a/src/mhitu.c +++ b/src/mhitu.c @@ -1724,9 +1724,10 @@ gulpmu(mtmp, mattk) /* monster swallows you, or damage if u.uswallow */ case AD_BLND: if (can_blnd(mtmp, &youmonst, mattk->aatyp, (struct obj*)0)) { if(!Blind) { - You_cant("see in here!"); + long was_blinded = Blinded; + if (!Blinded) You_cant("see in here!"); make_blinded((long)tmp,FALSE); - if (!Blind) Your(vision_clears); + if (!was_blinded && !Blind) Your(vision_clears); } else /* keep him blind until disgorged */ make_blinded(Blinded+1,FALSE);