tochno full 5 laba

This commit is contained in:
bulatova_karina 2023-12-08 22:38:53 +03:00
parent 04f93783fd
commit ef7d40ad0d

View File

@ -131,6 +131,8 @@ namespace WarmlyShip.Generics
if (ship != null)
{
int width = _pictureWidth / _placeSizeWidth;
ship._pictureWidth = _pictureWidth;
ship._pictureHeight = _pictureHeight;
ship.SetPosition((width - 1 - (i % width)) * _placeSizeWidth, i / width * _placeSizeHeight);
ship.DrawTransport(g);
}