This commit is contained in:
shadowik 2022-10-04 02:08:39 +04:00
commit 3199cf3a61

View File

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