diff --git a/DoubleDeckerBus/DoubleDeckerBus/AbstractMap.cs b/DoubleDeckerBus/DoubleDeckerBus/AbstractMap.cs index f3cfe3f..036661e 100644 --- a/DoubleDeckerBus/DoubleDeckerBus/AbstractMap.cs +++ b/DoubleDeckerBus/DoubleDeckerBus/AbstractMap.cs @@ -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; } } }