Skip to content

Commit

Permalink
[UNI-247] fix : 길 찾기 오류 수정 (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
thdgustjd1 authored Feb 25, 2025
1 parent 9374523 commit 263fa31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ private FastestRouteResultDTO generateResult(List<Route> shortestRoutes, Node st
}
currentNode = secondNode;

double heightDiff = firstNode.getHeight() - secondNode.getHeight();
double heightDiff = secondNode.getHeight() - firstNode.getHeight();
if(heightDiff > 0){
heightIncreaseWeight += Math.min(LIMIT_RANGE ,Math.exp(heightDiff) - 1);
}
Expand Down

0 comments on commit 263fa31

Please sign in to comment.