]> granicus.if.org Git - nethack/commit
litroom() vs Blind
authorPatR <rankin@nethack.org>
Fri, 9 Oct 2015 01:05:05 +0000 (18:05 -0700)
committerPatR <rankin@nethack.org>
Fri, 9 Oct 2015 01:05:05 +0000 (18:05 -0700)
commita28b535e80b0218403d3e5056ff73dfd0ee27642
tree59729d369951987a1bf09fb9ed832ddc4c1965fa
parentbd3244835e08813368e2caddf9fcc569dbc05c63
litroom() vs Blind

An item from the "A few bugs" mail was that reading a scroll of light
when swallowed didn't light the surrounding area--which is intended--
but that doing so while blind *did*.  The logic in litroom()--which
the report was based on--was wrong, but do_clear_area() prevented the
light was escaping the engulfer.  So there was no bug from the player's
perspective, but only because the vision code has special handling for
being swallowed.  This fixes litroom()'s logic and does some formatting
cleanup.
src/read.c