#endif\r
foreach (Point point in neighbors)\r
{\r
- Cell inQueue = mCells[point.X, point.Y];\r
-\r
if (0 <= point.X && point.X < mGridWidth && 0 <= point.Y && point.Y < mGridHeight &&\r
mGrid[point.X, point.Y])\r
{\r
int cost = cell.G + costFunction(cell.Point, point);\r
\r
+ Cell inQueue = mCells[point.X, point.Y];\r
if (inQueue == null)\r
{\r
Cell neighbor = new Cell(point, cost, heuristic(point, finish), cell);\r