Lisov N.A Lab_work 1 #1

Merged
eegov merged 6 commits from LabWork01 into master 2022-09-30 09:06:19 +04:00
Showing only changes of commit 6e9d2caf06 - Show all commits

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