PIbd-22. Bulatova K.R. LabWork_07 #13

Closed
bulatova_karina wants to merge 4 commits from LabWork_07.1 into LabWork_06.1
Showing only changes of commit 27368347ff - Show all commits

View File

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