зафиксировать

This commit is contained in:
Kristina 2023-12-28 21:03:30 +04:00
parent 9f19a61ae6
commit fe747801b0

View File

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