]> granicus.if.org Git - nethack/commit
ball&chain bit
authorPatR <rankin@nethack.org>
Tue, 25 Jun 2019 18:02:07 +0000 (11:02 -0700)
committerPatR <rankin@nethack.org>
Tue, 25 Jun 2019 18:02:07 +0000 (11:02 -0700)
commit88f19c57e424cc1644d034b1055e6a3033eefff3
tree8a3facaee24c02bd8b682e34a79799a774919f0b
parentd0a32762abeca726b41bb10537988c22bc9e1aa0
ball&chain bit

A check for bad restoration (ball without chain or vice versa) issued
a warning but then left the problem around to trip up other code.
'Fix' the problem by clearing those owornmask slots and their pointers.
Doesn't try to recover memory if the one that's found is OBJ_FREE.

Also some formatting.
src/read.c
src/restore.c