Исправления Set Position
This commit is contained in:
parent
0776eb1254
commit
6e9d2caf06
@ -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