ласт
This commit is contained in:
parent
5c14d4e6cc
commit
0584c4874c
@ -38,7 +38,7 @@ namespace WarmlyShip
|
|||||||
{
|
{
|
||||||
for (int j = (int)(position.Left / _size_x); j <= (int)(position.Right / _size_x); ++j)
|
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;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user