Исправил ошибки
This commit is contained in:
parent
823b1e5890
commit
65eddefb53
@ -59,7 +59,7 @@ namespace AirplaneWithRadar
|
||||
_pictureWidth = width;
|
||||
_pictureHeight = height;
|
||||
|
||||
if (x < 0 || y < 0 || width <= _airplaneWidth || height <= _airplaneHeight || x - _airplaneWidth < width || y - _airplaneHeight < height)
|
||||
if (x < 0 || y < 0 || width <= _airplaneWidth || height <= _airplaneHeight || x + _airplaneWidth > width || y + _airplaneHeight > height)
|
||||
{
|
||||
_pictureHeight = null;
|
||||
_pictureWidth = null;
|
||||
|
Loading…
Reference in New Issue
Block a user