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.
This commit is contained in:
cohrs
2003-08-21 19:10:06 +00:00
parent 6c254ee539
commit 729e9cc03b

View File

@@ -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);