fixed dijkstra memleak

new dijkstra interfaces and abort options
refactored all files accordingly
enable logging via compile-time defines
This commit is contained in:
2016-03-18 10:18:17 +01:00
parent f8d7f768f1
commit d0801606b7
8 changed files with 44 additions and 14 deletions

View File

@@ -53,7 +53,7 @@ TEST(TestAll, Nav) {
const GP& start = g.getNodeFor(GridPoint(500,200,20));
const GP& end = g.getNodeFor(GridPoint(1200,200,340));
//const GP& end = g.getNodeFor(GridPoint(1300,1300,20));
d.build(start, end, tmp);
d.build(&start, &end, tmp);
// add the path's importance to the grid
gi.addImportance(g, d.getNode(start), d.getNode(end));