From c3b6d7169edee8752a98b4671d28fe789719d5e3 Mon Sep 17 00:00:00 2001 From: Hells Hound Date: Fri, 30 Sep 2022 19:41:15 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D0=BB=D0=BD=D0=BE=D1=81=D1=82?= =?UTF-8?q?=D1=8C=D1=8E=20=D0=B3=D0=BE=D1=82=D0=BE=D0=B2=D0=B0=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AircraftCarrier/AircraftCarrier/AbstractMap.cs | 1 - AircraftCarrier/AircraftCarrier/DrawingWarship.cs | 1 - AircraftCarrier/AircraftCarrier/EntityWarship.cs | 2 -- AircraftCarrier/AircraftCarrier/LineMap.cs | 2 -- 4 files changed, 6 deletions(-) diff --git a/AircraftCarrier/AircraftCarrier/AbstractMap.cs b/AircraftCarrier/AircraftCarrier/AbstractMap.cs index 2836c1f..667881f 100644 --- a/AircraftCarrier/AircraftCarrier/AbstractMap.cs +++ b/AircraftCarrier/AircraftCarrier/AbstractMap.cs @@ -38,7 +38,6 @@ namespace AircraftCarrier } (float Left, float Right, float Top, float Bottom) = _drawingObject.GetCurrentPosition(); - if (Check(Left, Right, Top, Bottom) != 0) { _drawingObject.MoveObject(GetOpositDirection(direction)); diff --git a/AircraftCarrier/AircraftCarrier/DrawingWarship.cs b/AircraftCarrier/AircraftCarrier/DrawingWarship.cs index 581ea62..0cf2699 100644 --- a/AircraftCarrier/AircraftCarrier/DrawingWarship.cs +++ b/AircraftCarrier/AircraftCarrier/DrawingWarship.cs @@ -207,6 +207,5 @@ namespace AircraftCarrier { return (_startPosX, _startPosY, _startPosX + _warshipWidth, _startPosY + _warshipHeight); } - } } diff --git a/AircraftCarrier/AircraftCarrier/EntityWarship.cs b/AircraftCarrier/AircraftCarrier/EntityWarship.cs index 88b6a83..b5d037c 100644 --- a/AircraftCarrier/AircraftCarrier/EntityWarship.cs +++ b/AircraftCarrier/AircraftCarrier/EntityWarship.cs @@ -40,7 +40,5 @@ namespace AircraftCarrier Weight = weight <= 0 ? rnd.Next(40, 70) : weight; BodyColor = bodyColor; } - - } } diff --git a/AircraftCarrier/AircraftCarrier/LineMap.cs b/AircraftCarrier/AircraftCarrier/LineMap.cs index df6829b..2853b76 100644 --- a/AircraftCarrier/AircraftCarrier/LineMap.cs +++ b/AircraftCarrier/AircraftCarrier/LineMap.cs @@ -59,7 +59,5 @@ namespace AircraftCarrier counter++; } } - - } }