From 7decc64f31a5588340ee2d639aae254707bc4ac2 Mon Sep 17 00:00:00 2001 From: Mark Zaharchenko Date: Sat, 1 Oct 2022 03:48:51 +0400 Subject: [PATCH] Fast fix --- DoubleDeckerBus/DoubleDeckerBus/AbstractMap.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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; } } }