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;