изма
This commit is contained in:
parent
6fd602ceb6
commit
b576a536db
@ -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 получение объекта
|
||||||
|
Loading…
Reference in New Issue
Block a user