This commit is contained in:
AnnaLioness 2023-10-08 21:34:51 +04:00
parent 6fd602ceb6
commit b576a536db

View File

@ -130,7 +130,7 @@ namespace Lab1ContainersShip
T t = _collection.Get(i); T t = _collection.Get(i);
if (t != null) if (t != null)
{ {
t.SetPosition((i % (_pictureWidth / _placeSizeWidth)) * _placeSizeWidth, i / (_pictureWidth / _placeSizeWidth) * _placeSizeHeight); t.SetPosition(((_collection.Count -i - 1) % (_pictureWidth / _placeSizeWidth)) * _placeSizeWidth, (_collection.Count - i-1) / (_pictureWidth / _placeSizeWidth) * _placeSizeHeight);
t.DrawShip(g); t.DrawShip(g);
} }
// TODO получение объекта // TODO получение объекта