continue;
}
}
int xp = x + current.x;
int yp = y + current.y;
<BUG>if (xp < 0 || yp < 0 || xp >= Chunk.xSize || yp >= Chunk.ySize)
</BUG>
continue;
if (mover2d.canTraverse(chunk, sx, sy, xp, yp)) {
float nextStepCost = current.cost + mover2d.getCost(current.x, current.y, xp, yp);

continue;
}
if (!allowDiag) {
if ((x != 0) && (y != 0)) {
continue;
}
}
int xp = x + current.x;
int yp = y + current.y;
if (xp < 0 || yp < 0 || xp >= ExampleChunk.xSize || yp >= ExampleChunk.ySize)
continue;
if (mover2d.canTraverse(chunk, sx, sy, xp, yp)) {
float nextStepCost = current.cost + mover2d.getCost(current.x, current.y, xp, yp);
