This commit is contained in:
Mark Zaharchenko 2022-10-01 03:48:51 +04:00
parent 5ee4ef719c
commit 7decc64f31

View File

@ -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) if (_map[x, y] == _barrier)
{ {
return true; return true;
break;
} }
} }
} }