change checks
This commit is contained in:
parent
372af42b19
commit
eda0bc77d9
@ -29,10 +29,8 @@ namespace AirFighter
|
||||
{
|
||||
if (width < _airFighterWidth || height < _airFighterHeight) return;
|
||||
|
||||
if (_startPosX + _airFighterWidth > _pictureWidth) return;
|
||||
if (_startPosX < 0) return;
|
||||
if (_startPosY < 0) return;
|
||||
if (_startPosY + _airFighterHeight > _pictureHeight) return;
|
||||
if (x + _airFighterWidth > width || x < 0) return;
|
||||
if (y + _airFighterHeight > height || y < 0) return;
|
||||
|
||||
_startPosX = x;
|
||||
_startPosY = y;
|
||||
|
Loading…
Reference in New Issue
Block a user