Skip to content

Commit 263fa31

Browse files
authored
[UNI-247] fix : 길 찾기 오류 수정 (#240)
1 parent 9374523 commit 263fa31

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

uniro_backend/src/main/java/com/softeer5/uniro_backend/map/service/RouteCalculator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ private FastestRouteResultDTO generateResult(List<Route> shortestRoutes, Node st
281281
}
282282
currentNode = secondNode;
283283

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

0 commit comments

Comments
 (0)