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;