]> granicus.if.org Git - nethack/commit
more owornmask sanity_check
authorPatR <rankin@nethack.org>
Sat, 2 May 2015 09:44:57 +0000 (02:44 -0700)
committerPatR <rankin@nethack.org>
Sat, 2 May 2015 09:44:57 +0000 (02:44 -0700)
commitee854e5c7685edd89a2ee2826db361c9461809f1
tree2c7a8d5ca2eb9307429da4ac35976f0aaf0f0ead
parent40fdbccf84a5c745dd76c03088c8890039610c1f
more owornmask sanity_check

Fix the problem with erroneously detecting wielded or quivered
chained ball which legitimately has more than one mask bit set.

Add an additional check for valid wornmask of an item somehow worn
in an invalid slot (such as an amulet in one of the ring slots).
Only lightly tested; it really needs debugger assistance to force
various invalid situations but I don't know gdb well enough for that.
src/mkobj.c