Lisov N.A Lab_work 1 #1
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user