From 941e8dcfd08eedc3f5c2ce024c9f6d4375c09f2b Mon Sep 17 00:00:00 2001 From: YakovlevMaxim Date: Mon, 9 Oct 2023 18:22:01 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D1=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SailBoat/SailBoat/DrawningObjects/DrawningBoat.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SailBoat/SailBoat/DrawningObjects/DrawningBoat.cs b/SailBoat/SailBoat/DrawningObjects/DrawningBoat.cs index 24a14ca..e1ca743 100644 --- a/SailBoat/SailBoat/DrawningObjects/DrawningBoat.cs +++ b/SailBoat/SailBoat/DrawningObjects/DrawningBoat.cs @@ -47,8 +47,8 @@ namespace SailBoat.DrawningObjects public DrawningBoat(int speed, double weight, Color bodyColor, int width, int height) { - if (width < 200) { width = 900; } - if (height < 200) { height = 500; } + if (width < _boatWidth) { width = 900; } + if (height < _boatHeight) { height = 500; } _pictureWidth = width; _pictureHeight = height; EntityBoat = new EntityBoat(speed, weight, bodyColor);