Skip to content

Commit

Permalink
removed todo
Browse files Browse the repository at this point in the history
  • Loading branch information
val antonini committed May 1, 2024
1 parent d951735 commit ab36df6
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion astar.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ func punishChangeDirection(q node, successor, end Vec2) int {
}
}

// todo: check option if diagonal enabled
if !isDiagAdj(q.pos, successor) {
if isDiagAdj(q.pos, q.parent.pos) {
return punishment
Expand Down

0 comments on commit ab36df6

Please sign in to comment.