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.Up => _startPosY - AntiAirСraftGun.Step > 0,
// вправо // вправо
DirectionType.Right =>_startPosX + AntiAirСraftGun.Step < _pictureWidth - 110, DirectionType.Right =>_startPosX + AntiAirСraftGun.Step + _zenitWidth < _pictureWidth,
//вниз //вниз
DirectionType.Down => _startPosY + AntiAirСraftGun.Step < _pictureHeight - 60, DirectionType.Down => _startPosY + AntiAirСraftGun.Step + _zenitHeight< _pictureHeight,
_ => false, _ => false,
}; };
} }