]> granicus.if.org Git - nethack/commit
R919 - applying lances
authorcohrs <cohrs>
Thu, 11 Jul 2002 05:16:27 +0000 (05:16 +0000)
committercohrs <cohrs>
Thu, 11 Jul 2002 05:16:27 +0000 (05:16 +0000)
commit35914ed1865cac094da3fc1c2591a8541a77d33d
treeb796319811d6fb332825b9e03344a82cd27fc357
parentc0bcc8d292dd9f7319e95cb1b0816f83f3bcbbb7
R919 - applying lances
Fixes 2 bugs:
1) an impossible() could occur if you applied a lance against a long worm
because the code uses thitmonst to do the hitting, but didn't set bhitpos,
which is required before calling thitmonst.
Add the missing assignment.
2) applying a lance would never mark a knight as a caitiff.  Added a new
check_caitiff function and called it from the 2 existing checks and in
the lance code.
doc/fixes34.1
include/extern.h
src/apply.c
src/dokick.c
src/uhitm.c