]> granicus.if.org Git - nethack/commit
polyself bit (trunk only)
authornethack.rankin <nethack.rankin>
Tue, 13 Jun 2006 03:15:03 +0000 (03:15 +0000)
committernethack.rankin <nethack.rankin>
Tue, 13 Jun 2006 03:15:03 +0000 (03:15 +0000)
commitc243a06c79a541578de72f6a1bc877a1e06d51ad
tree96b58297b7751ecda0ae80c1dba121bc7b1d4bfc
parentf139b67e43067621f862ff0f8e9b5b535182f6e4
polyself bit (trunk only)

     Some recent code shuffling introduced an unintended change in behavior
(not observable to the player; just unnecessary deletion and re-creation of
light source with identical radius when polymorphing from one light emitting
form to another).  The fixup for light range 1 would need to be repeated for
`old_light' when outside the `if (old_light != new_light)' block; move it
back inside where that isn't required.  Also, youmonst.data is valid all the
time so a couple of `Upolyd' tests in the surrounding code can be dropped.
src/polyself.c