You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1.var map:Array = [[0, 0, 1, 1, 0, 0, 1, 1, 1, 1],
[0, 0, 1, 1, 0, 0, 1, 0, 0, 0],
[0, 0, 1, 1, 0, 0, 1, 1, 0, 0],
[0, 0, 1, 1, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 1, 1, 1, 1, 1],
[0, 0, 1, 1, 0, 0, 0, 1, 1, 1],
[0, 0, 1, 1, 0, 0, 0, 0, 0, 0],
[0, 0, 1, 1, 0, 1, 0, 0, 0, 0],
[0, 0, 1, 1, 0, 0, 0, 1, 0, 0],
[0, 0, 1, 1, 0, 0, 0, 0, 0, 0]];
var pt:Pathfinder = new Pathfinder();
pt.loadMap(map);
//Try the following testCases.
2.pt.getPath(new Point(9, 0), new Point(9, 4), false);
3.pt.getPath(new Point(9, 0), new Point(8, 8), false);
4.pt.getPath(new Point(7, 6), new Point(9, 7), false);
4.pt.getPath(new Point(7, 7), new Point(9, 7), false);
5.pt.getPath(new Point(3, 5), new Point(1, 7), false);
6.pt.getPath(new Point(7, 7), new Point(9, 9), false);
7 try getPath from anywhere from the right edge to any other tile. Get errors.
What is the expected output? What do you see instead?
I See a lot of errors. for example:
at pathfinder::Pathfinder/iterate()
at pathfinder::Pathfinder/getPathArray()
Also, in issue No.5 I get an empty array back from getPath.
I managed to fix a couple of the issues by adding && i + 1 < dimensionX on
line 190 and 248. But I don't see why this only applies to the horizontal
arrays.
What version of the product are you using? On what operating system?
Pathfinder1.3
Flash CS6
Flash Player 11.2
Please provide any additional information below.
I've attached some files so that you can test it out. Just click on the two
tiles you want a path between.
Thanks for an otherwise great and easy pathfinder!
Original issue reported on code.google.com by explode...@gmail.com on 11 Sep 2012 at 2:01
Original issue reported on code.google.com by
explode...@gmail.com
on 11 Sep 2012 at 2:01Attachments:
The text was updated successfully, but these errors were encountered: