mirror of
https://github.com/GameHackingBook/GameHackingCode
synced 2026-06-08 11:08:54 +00:00
Various fixes
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user