Исправления Set Position

This commit is contained in:
1yuee 2022-09-13 15:46:30 +04:00
parent 0776eb1254
commit 6e9d2caf06

View File

@ -32,7 +32,7 @@ namespace AirFighter
public void SetPosition(int x, int y, int width, int height)
{
if (x > width || x < 0 || y > height || y< 0)
if (x + _aircraftWidth > width || x < 0 || y + _aircraftHeight > height || y < 0)
{
return;
}