Compare commits
1 Commits
Lab8SailBo
...
Lab2SailBo
| Author | SHA1 | Date | |
|---|---|---|---|
| 941e8dcfd0 |
@@ -47,8 +47,8 @@ namespace SailBoat.DrawningObjects
|
||||
|
||||
public DrawningBoat(int speed, double weight, Color bodyColor, int width, int height)
|
||||
{
|
||||
if (width < 200) { width = 900; }
|
||||
if (height < 200) { height = 500; }
|
||||
if (width < _boatWidth) { width = 900; }
|
||||
if (height < _boatHeight) { height = 500; }
|
||||
_pictureWidth = width;
|
||||
_pictureHeight = height;
|
||||
EntityBoat = new EntityBoat(speed, weight, bodyColor);
|
||||
|
||||
Reference in New Issue
Block a user