LabWork02 PIbd-21 Zacharchenko #2
@ -118,14 +118,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