Done
This commit is contained in:
parent
2228ca90f4
commit
eb531b8f58
@ -54,10 +54,13 @@ namespace ProjectAirBomber
|
||||
/// <param name="y"></param>
|
||||
public void SetPosition(int x, int y)
|
||||
{
|
||||
if (EntityAirBomber == null)
|
||||
return;
|
||||
if (x < 0 || y < 0 || x + _planeWidth >= _pictureWidth || y + _planeHeight >= _pictureHeight)
|
||||
x = y = 2;
|
||||
_startPosX = x;
|
||||
_startPosY = y;
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// </summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user