This commit is contained in:
Алексей Тихоненков 2023-10-15 22:01:02 +04:00
parent 4c46170f09
commit e9ec3ff774
2 changed files with 4 additions and 4 deletions

View File

@ -81,9 +81,9 @@ namespace AntiAircraftGun.DrawingObjects
//вверх
DirectionType.Up => _startPosY - AntiAirСraftGun.Step > 0,
// вправо
DirectionType.Right =>_startPosX + AntiAirСraftGun.Step < _pictureWidth - 110,
//вниз
DirectionType.Down => _startPosY + AntiAirСraftGun.Step < _pictureHeight - 60,
DirectionType.Right =>_startPosX + AntiAirСraftGun.Step + _zenitWidth < _pictureWidth,
//вниз
DirectionType.Down => _startPosY + AntiAirСraftGun.Step + _zenitHeight< _pictureHeight,
_ => false,
};
}

View File

@ -145,5 +145,5 @@ namespace AntiAircraftGun
}
}
}
}