Fixed selection bug and changed the astar a bit but its still not right

This commit is contained in:
Ziver Koc 2007-04-19 15:41:31 +00:00
parent bdb12e2000
commit 397fb7ebd0
4 changed files with 15 additions and 10 deletions

View file

@ -27,7 +27,7 @@ public class AStar{
}
public List<AStarNode> startSearch(Vector2i start, Vector2i goal){
map[goal.getX()][goal.getY()].setBlocked(false);
//map[goal.getX()][goal.getY()].setBlocked(false);
return pathfinder.findPath(map[start.getX()][start.getY()], map[goal.getX()][goal.getY()]);
}