ISEbd-22 Musatkina K. Y. Lab work 8 #12
@ -76,11 +76,11 @@ namespace ProjectBoat_bae.DrawningObjects
|
||||
{
|
||||
if (x < 0 || x + _boatWidth > _pictureWidth)
|
||||
{
|
||||
x = Math.Max(0, _pictureWidth - _boatWidth + 90);
|
||||
x = Math.Max(0, _pictureWidth - _boatWidth);
|
||||
}
|
||||
if (y < 0 || y + _boatHeight > _pictureHeight)
|
||||
{
|
||||
y = Math.Max(0, _pictureHeight - _boatHeight+ 90);
|
||||
y = Math.Max(0, _pictureHeight - _boatHeight);
|
||||
}
|
||||
_startPosX = x;
|
||||
_startPosY = y;
|
||||
|
Loading…
x
Reference in New Issue
Block a user