]> granicus.if.org Git - nethack/commit
pets getting "stuck" trying to reach inaccessible objects
authorcohrs <cohrs>
Tue, 21 Oct 2003 17:16:50 +0000 (17:16 +0000)
committercohrs <cohrs>
Tue, 21 Oct 2003 17:16:50 +0000 (17:16 +0000)
commit32234b1da46a4665abe2a34bcb8035e9d7102051
treed4cbb0d4179a6e518b3727a0eb332fc4933a09e8
parent47e1a6873a98d313b248e05b49f38e6b82d70751
pets getting "stuck" trying to reach inaccessible objects
Incorporate a slightly modified version of a patch submitted by <Someone> back in June.  The basic problem, which I noticed again this past
weekend, is that pets with a high apport value can still try to get to
objects when there's no path to the object.  The patch extends the
can_reach_food function to be used for any object, renaming it to
can_reach_location, and adds a could_reach_item function for doing point
checks.  This also removes any chance of a pet dragon, for example, eating
something underwater.
doc/fixes34.3
src/dogmove.c