Various fixes

This commit is contained in:
Nick Cano
2016-04-20 14:15:23 -07:00
parent 078d92c45e
commit 50152ef2c9
4 changed files with 29 additions and 14 deletions
@@ -35,7 +35,8 @@ public:
}
void updateScore(int endx, int endy)
{
this->score = g + heuristic(endx, endy) * TILE_COST;
auto h = this->heuristic(endx, endy) * TILE_COST;
this->score = g + h;
}
AStarNodePtr getCopy()
{