Skip to content

Commit ffcffa9

Browse files
Fix indentation
1 parent de9c3d9 commit ffcffa9

1 file changed

Lines changed: 13 additions & 13 deletions

File tree

Core/GameEngine/Source/GameLogic/AI/AIPathfind.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5562,19 +5562,19 @@ Bool Pathfinder::adjustDestination(Object *obj, const LocomotorSet& locomotorSet
55625562
Int segmentLength = 1;
55635563
const ICoord2D directions[4] = { {1, 0}, {0, 1}, {-1, 0}, {0, -1} };
55645564
while (limit>0) {
5565-
for (Int dir = 0; dir < 4; dir++) {
5566-
for (Int count = segmentLength; count>0; count--) {
5567-
i+=directions[dir].x;
5568-
j+=directions[dir].y;
5569-
limit--;
5570-
if (checkForAdjust(obj, locomotorSet, isHuman, i, j, layer, iRadius, center, dest, groupDest)) {
5571-
return true;
5572-
}
5573-
}
5574-
if (dir & 1) {
5575-
segmentLength++;
5576-
}
5577-
}
5565+
for (Int dir = 0; dir < 4; dir++) {
5566+
for (Int count = segmentLength; count>0; count--) {
5567+
i+=directions[dir].x;
5568+
j+=directions[dir].y;
5569+
limit--;
5570+
if (checkForAdjust(obj, locomotorSet, isHuman, i, j, layer, iRadius, center, dest, groupDest)) {
5571+
return true;
5572+
}
5573+
}
5574+
if (dir & 1) {
5575+
segmentLength++;
5576+
}
5577+
}
55785578
}
55795579

55805580
if (groupDest) {

0 commit comments

Comments
 (0)