diff --git a/ProjectStormtrooper/ProjectStormtrooper/DrawingStormtrooper.cs b/ProjectStormtrooper/ProjectStormtrooper/DrawingStormtrooper.cs index 9e88c65..9b31d37 100644 --- a/ProjectStormtrooper/ProjectStormtrooper/DrawingStormtrooper.cs +++ b/ProjectStormtrooper/ProjectStormtrooper/DrawingStormtrooper.cs @@ -190,6 +190,7 @@ public class DrawingStormtrooper return; } Pen pen = new(Color.Black); + Brush bodyColorBrush = new SolidBrush(EntityStormtrooper.BodyColor); Brush additionalBrush = new SolidBrush(EntityStormtrooper.AdditionalColor); //Тело бомбардировщика g.DrawRectangle(pen, _startPosX.Value + 20, _startPosY.Value + 60, 120, 20); @@ -211,7 +212,7 @@ public class DrawingStormtrooper Nose[0].X = _startPosX.Value + 20; Nose[0].Y = _startPosY.Value + 80; Nose[1].X = _startPosX.Value; Nose[1].Y = _startPosY.Value + 70; Nose[2].X = _startPosX.Value + 20; Nose[2].Y = _startPosY.Value + 60; - g.FillPolygon(additionalBrush, Nose); + g.FillPolygon(bodyColorBrush, Nose); //Ракеты бомбардировщика if (EntityStormtrooper.Rockets) {