]> granicus.if.org Git - nethack/commit
Make travel consider traps like closed doors
authorPasi Kallinen <paxed@alt.org>
Mon, 21 Dec 2015 15:31:04 +0000 (17:31 +0200)
committerPasi Kallinen <paxed@alt.org>
Mon, 21 Dec 2015 15:36:14 +0000 (17:36 +0200)
commit9a2eb370e70482d13e9a9de5b4561b5c3e509a69
treef1b6bc3c401aba78ce685528b0adf3401cf6f748
parentc86ae780c46cf2751efc60f48db8469ce0af82d8
Make travel consider traps like closed doors

Test case: U-shaped corridor, with a known trap in it.
Before this change, travel would try to move straight at
the target, bumping the wall or walking into a dead-end.
After this, travel will go along the corridor and then stop
right before the trap.

Original patch via AceHack by Alex Smith.
doc/fixes36.1
include/hack.h
src/hack.c