주석 추가
This commit is contained in:
@@ -342,7 +342,7 @@ namespace AStarPathFinding
|
||||
if (gCost == 14)
|
||||
{
|
||||
Point tempNextIndex = AddPoint(focusNode.axis, neerAxis[i + 1]);
|
||||
Point tempPrevIndex = AddPoint(focusNode.axis, neerAxis[i - 1 < 0 ? 7 : i - 1]);
|
||||
Point tempPrevIndex = AddPoint(focusNode.axis, neerAxis[i - 1 < 0 ? 7 : i - 1]); // i - 1이 0보다 작을 경우 7(참), i - 1이 0보다 클 경우 i - 1을 결과값으로 가져감
|
||||
|
||||
if (tableStateData[tempNextIndex.X, tempNextIndex.Y] == eTileState.Wall ||
|
||||
tableStateData[tempPrevIndex.X, tempPrevIndex.Y] == eTileState.Wall)
|
||||
|
||||
Reference in New Issue
Block a user