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;