Borschevsckaya A.A. Lab work 1 #1

Merged
eegov merged 4 commits from lab1 into master 2022-10-07 09:49:41 +04:00
Showing only changes of commit 5b9d906004 - Show all commits

View File

@ -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;