исправление координат

This commit is contained in:
mara-1 2024-03-14 10:07:30 +04:00
parent a7bcf86f4f
commit 777a09e683

View File

@ -25,6 +25,8 @@ public class DrawningBulldozer : DrawningBulldozerProstoy
EntityBulldozerProstoy = new EntityBulldozer(speed, weight, bodyColor, additionalColor, additionalOtval,
additionalRihl);
}
public override void DrawTransport(Graphics g)
{
if (EntityBulldozerProstoy == null || EntityBulldozerProstoy is not EntityBulldozer Bulldozer || !_startPosX.HasValue || !_startPosY.HasValue)
@ -40,11 +42,9 @@ public class DrawningBulldozer : DrawningBulldozerProstoy
_startPosX += 10;
_startPosY += 5;
base.DrawTransport(g);
_startPosX -= 10;
_startPosY -= 5;
Brush bl = new SolidBrush(Bulldozer.AdditionalColor);
/////////отвал