주석 추가

This commit is contained in:
김민구
2020-12-14 18:36:30 +09:00
parent 97bd185eb7
commit 66a477808a
8 changed files with 2 additions and 2 deletions

View File

@@ -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)