]> granicus.if.org Git - nethack/commit
fix #H261 - bias in Bresenham's algorithm in walk_path
authornethack.rankin <nethack.rankin>
Thu, 29 Mar 2007 04:03:35 +0000 (04:03 +0000)
committernethack.rankin <nethack.rankin>
Thu, 29 Mar 2007 04:03:35 +0000 (04:03 +0000)
commitb4f39da9dd057a97b1896a00dcaea08e570789a4
tree55457fe42bb920edf8c73a13702cfbccca119280
parent8748bf53348a3fd5d3f20677aa5ca3a7d6639067
fix #H261 - bias in Bresenham's algorithm in walk_path

     From a bug report, walk_path() was
favoring orthogonal steps at beginning of the path and diagonal ones at
end, when intermixing diagonal and orthoganal produced a more accurate
representation of the real path.  Only mattered for long distance jumps
3x2 or 3x1 steps away; hurtling always moves in a straight line and short
(2x1 knight) jumps aren't affected by the patch supplied with the report.
doc/fixes34.4
src/dothrow.c