-
Notifications
You must be signed in to change notification settings - Fork 462
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
nethack.rankin
committed
Mar 29, 2007
1 parent
8748bf5
commit b4f39da
Showing
2 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters