From 379eabc701ff74e70200283f5496b85f9a85a05e Mon Sep 17 00:00:00 2001 From: malimova Date: Sat, 7 Oct 2023 10:53:33 +0400 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BF=D0=BE=D0=BB=D0=BD=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=83=D0=B6=D0=B5=20=D1=81=D0=B4=D0=B5?= =?UTF-8?q?=D0=BB=D0=B0=D0=BD=D0=BD=D1=8B=D1=85=20=D0=B2=20=D0=BF=D1=80?= =?UTF-8?q?=D0=BE=D1=88=D0=BB=D0=BE=D0=B9=20=D0=BB=D0=B0=D0=B1=D0=B5=20TOD?= =?UTF-8?q?Os?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AirBomber/AirBomber/DrawningAirPlane.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AirBomber/AirBomber/DrawningAirPlane.cs b/AirBomber/AirBomber/DrawningAirPlane.cs index 237e2dd..31a4a17 100644 --- a/AirBomber/AirBomber/DrawningAirPlane.cs +++ b/AirBomber/AirBomber/DrawningAirPlane.cs @@ -67,6 +67,10 @@ namespace AirBomber width, int height, int airPlaneWidth, int airPlaneHeight) { // TODO: Продумать проверки + if (width < _airPlaneWidth || height < _airPlaneHeight) + { + return; + } _pictureWidth = width; _pictureHeight = height; _airPlaneWidth = airPlaneWidth;