diff --git a/ProjectBattleship/ProjectBattleship/ShipsGenericCollection.cs b/ProjectBattleship/ProjectBattleship/ShipsGenericCollection.cs index 7b6066e..08dc0d0 100644 --- a/ProjectBattleship/ProjectBattleship/ShipsGenericCollection.cs +++ b/ProjectBattleship/ProjectBattleship/ShipsGenericCollection.cs @@ -77,7 +77,7 @@ namespace ProjectBattleship.Generics if (ship != null) { int inRow = _pictureWidth / _placeSizeWidth; - ship.SetPosition(i % inRow * _placeSizeWidth, (_collection.Count / inRow - 1 - i / inRow) * _placeSizeHeight + 5); + ship.SetPosition(i % inRow * _placeSizeWidth, _pictureHeight - _pictureHeight % _placeSizeHeight - (i / inRow + 1) * _placeSizeHeight + 5); ship.DrawTransport(g); } i++;