From 5b9d9060045c0ef2c09bfab53dc8a780dfd60d17 Mon Sep 17 00:00:00 2001 From: prodigygirl Date: Sun, 2 Oct 2022 20:08:25 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B0=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B0=20?= =?UTF-8?q?=D1=81=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA=D0=BE=D0=B9?= =?UTF-8?q?=20=D0=BA=D0=BE=D0=BE=D1=80=D0=B4=D0=B8=D0=BD=D0=B0=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ArmoredCar/ArmoredCar/DrawningArmoredCar.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArmoredCar/ArmoredCar/DrawningArmoredCar.cs b/ArmoredCar/ArmoredCar/DrawningArmoredCar.cs index 771262b..a0ae58b 100644 --- a/ArmoredCar/ArmoredCar/DrawningArmoredCar.cs +++ b/ArmoredCar/ArmoredCar/DrawningArmoredCar.cs @@ -58,7 +58,7 @@ namespace ArmoredCar public void SetPosition(int x, int y, int width, int height) { - if (x > 0 && y > 0 && x + _carWidth < width && y + _carHeight < height) { + if (x >= 0 && y >= 0 && x + _carWidth < width && y + _carHeight < height) { _startPosX = x; _startPosY = y; _pictureWidth = width;