From 396df2c24c83c10152564bdeda1d465169a00dd3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B5=D1=80=D0=B3=D0=B5=D0=B9=20=D0=9F=D0=BE=D0=BB?= =?UTF-8?q?=D0=B5=D0=B2=D0=BE=D0=B9?= Date: Mon, 26 Sep 2022 23:57:25 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SelfPropelledArtilleryUnit/AbstractMap.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SelfPropelledArtilleryUnit/AbstractMap.cs b/SelfPropelledArtilleryUnit/AbstractMap.cs index 410f259..ac916bb 100644 --- a/SelfPropelledArtilleryUnit/AbstractMap.cs +++ b/SelfPropelledArtilleryUnit/AbstractMap.cs @@ -62,9 +62,9 @@ namespace Artilleries return false; } - for (int i = 0; i < _map.GetLength(0); i++) + for (int i = 2; i < _map.GetLength(0); i++) { - for (int j = 0; j < _map.GetLength(1); j++) + for (int j = 2; j < _map.GetLength(1); j++) { _drawingObject.SetObject((int) (i * _size_x), (int) (j * _size_y), _width, _height); if (!ObjectIntersects()) return true;