Compare commits
No commits in common. "c5073fef9593dd006e7d033b5a87dc06b10dc09a" and "acd1b0cce2dd175e7d74cea15881543caf9903ea" have entirely different histories.
c5073fef95
...
acd1b0cce2
@ -57,11 +57,11 @@ namespace ProjectLocomotive.CollectionGenericObjects
|
||||
/// Перегрузка оператора сложения для класса
|
||||
/// </summary>
|
||||
/// <param name="company">Компания</param>
|
||||
/// <param name="locomotive">Добавляемый объект</param>
|
||||
/// <param name="сruiser">Добавляемый объект</param>
|
||||
/// <returns></returns>
|
||||
public static int operator +(AbstractCompany company, DrawningLocomotive locomotive)
|
||||
public static int operator +(AbstractCompany company, DrawningLocomotive сruiser)
|
||||
{
|
||||
return company._collection.Insert(locomotive);
|
||||
return company._collection.Insert(сruiser);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -40,7 +40,7 @@ namespace ProjectLocomotive.CollectionGenericObjects
|
||||
int curWidth = 2;
|
||||
int curHeight = 0;
|
||||
|
||||
for (int i = 0; i > (_collection?.Count ?? 0); i++)
|
||||
for (int i = 0; i < (_collection?.Count ?? 0); i++)
|
||||
{
|
||||
|
||||
try
|
||||
@ -52,7 +52,7 @@ namespace ProjectLocomotive.CollectionGenericObjects
|
||||
catch (PositionOutOfCollectionException e) { }
|
||||
|
||||
|
||||
if (curWidth > width - 3)
|
||||
if (curWidth > width - 2)
|
||||
curWidth--;
|
||||
else
|
||||
{
|
||||
|
@ -55,11 +55,10 @@ namespace ProjectLocomotive.Drawnings
|
||||
|
||||
|
||||
|
||||
if (entityTLocomotive.Pipe)
|
||||
{
|
||||
|
||||
Point[] points4 = { new Point(_startPosX.Value + 20, _startPosY.Value), new Point(_startPosX.Value + 30, _startPosY.Value), new Point(_startPosX.Value + 30, _startPosY.Value - 7), new Point(_startPosX.Value + 32, _startPosY.Value - 9), new Point(_startPosX.Value + 30, _startPosY.Value - 11), new Point(_startPosX.Value + 20, _startPosY.Value - 11), new Point(_startPosX.Value + 18, _startPosY.Value - 9), new Point(_startPosX.Value + 20, _startPosY.Value - 7), new Point(_startPosX.Value + 20, _startPosY.Value) };
|
||||
g.FillPolygon(wheelBrush, points4);
|
||||
}
|
||||
|
||||
|
||||
if (entityTLocomotive.Fueltank)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user