Исправлена ошибка с проверкой координат
This commit is contained in:
parent
755567afd7
commit
5b9d906004
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user