Небольшие правки.
This commit is contained in:
parent
064b8e1188
commit
8e1ef84198
@ -33,11 +33,11 @@ namespace ProjectElectricLocomotive.DrawingObjects
|
|||||||
g.DrawRectangle(pen, _startPosX + 40, _startPosY + 24, 25, 11);
|
g.DrawRectangle(pen, _startPosX + 40, _startPosY + 24, 25, 11);
|
||||||
g.FillPolygon(additionalBrush, new Point[]
|
g.FillPolygon(additionalBrush, new Point[]
|
||||||
{
|
{
|
||||||
new Point(_startPosX + 41, _startPosY + 25),
|
new Point(_startPosX + 61, _startPosY + 25),
|
||||||
new Point(_startPosX + 65, _startPosY + 25),
|
new Point(_startPosX + 85, _startPosY + 25),
|
||||||
new Point(_startPosX + 65, _startPosY + 35),
|
new Point(_startPosX + 85, _startPosY + 35),
|
||||||
new Point(_startPosX + 41, _startPosY + 35),
|
new Point(_startPosX + 61, _startPosY + 35),
|
||||||
new Point(_startPosX + 41, _startPosY + 25),
|
new Point(_startPosX + 61, _startPosY + 25),
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
|
@ -21,7 +21,8 @@ namespace ProjectElectricLocomotive.MovementStrategy
|
|||||||
var objParams = GetObjectParameters;
|
var objParams = GetObjectParameters;
|
||||||
if (objParams == null) return;
|
if (objParams == null) return;
|
||||||
if (objParams.RightBorder < FieldWidth - GetStep()) MoveRight();
|
if (objParams.RightBorder < FieldWidth - GetStep()) MoveRight();
|
||||||
|
if (objParams.DownBorder < FieldHeight - GetStep()) MoveDown();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user