LabWork_02 #2

Closed
maxnes3 wants to merge 13 commits from LabWork_02 into LabWork_01
Showing only changes of commit 0584c4874c - Show all commits

View File

@ -38,7 +38,7 @@ namespace WarmlyShip
{
for (int j = (int)(position.Left / _size_x); j <= (int)(position.Right / _size_x); ++j)
{
if (i >= 0 && j >= 0 && _map[i, j] == _barrier) return false;
if (i >= 0 && j >= 0 && i < _map.GetLength(0) && j < _map.GetLength(1) && _map[i, j] == _barrier) return false;
}
}
return true;