]> granicus.if.org Git - nethack/commit
owornmask sanity_check fix and enhancement
authorPatR <rankin@nethack.org>
Sun, 3 May 2015 23:57:09 +0000 (16:57 -0700)
committerPatR <rankin@nethack.org>
Sun, 3 May 2015 23:57:09 +0000 (16:57 -0700)
commit3fa8ff9d62bbc1d443a8d300db0a032ea64ad588
tree24109839e03e89a133df427d8bc4033b84d5dd19
parent505f6246b5814df473e9942d33de4e6a4f13680a
owornmask sanity_check fix and enhancement

Thinko fix:  sanity checking for owornmask was mis-treating
OBJ_MIGRATING as OBJ_MINVENT of migrating monsters rather than as
unattended objects and would have had problems similar to obfree's
inappropriate impossible check.

Sanity checking for objects worn in invalid slots (amulet worn in
a ring slot and so forth) is extended to items worn by monsters.
Also add a check for wielded coins since the loophole that let them
become wielded has been closed.
src/mkobj.c