LabWork02 PIbd-21 Zacharchenko #2
@ -109,14 +109,13 @@ namespace DoubleDeckerBus
|
||||
|
||||
|
||||
|
||||
for (int y = startY; y <= endY + 1; y++)
|
||||
for (int y = startY; y < endY; y++)
|
||||
{
|
||||
for (int x = startX; x <= endX + 1; x++)
|
||||
for (int x = startX; x < endX; x++)
|
||||
{
|
||||
if (_map[x, y] == _barrier)
|
||||
{
|
||||
return true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user