]> granicus.if.org Git - nethack/commit
fix #M107 - blindness and secret doors
authornethack.rankin <nethack.rankin>
Thu, 16 Jun 2005 03:37:25 +0000 (03:37 +0000)
committernethack.rankin <nethack.rankin>
Thu, 16 Jun 2005 03:37:25 +0000 (03:37 +0000)
commita092740e67ccfc09709b0b37d8f79c36b44ba878
treea327bc8df70f4fb6c6ddcbb3b7978d3e1f5c5dd5
parentc967266d6ff755f0590d9ea422688d3ebeea00e3
fix #M107 - blindness and secret doors

     From a bug report:  zapping force
bolt broke an adjacent potion of blindness (possibly carried by the monster
he was attacking) which caused "it suddently gets dark" but further course
of the bolt resulted in now blinded hero recieving "a door appears in the
wall".  make_blinded() was deferring vision recalculation until next pass
through moveloop() (or until next pline()--if the "gets dark" message had
been delivered after the call to make_blinded() instead of before, this
wouldn't have been noticeable).  Fix is trivial:  just recalculate vision
immediately when temporary blindness is toggled.  [It might also be needed
for involuntary blindfold removal, although I suspect that that is always
accompanied by corresponding pline() which gets vision back into synch.]
doc/fixes34.4
src/potion.c
src/vision.c