From 17a21a8284a5fceceb26e0ab429a5f193044ba8a Mon Sep 17 00:00:00 2001 From: ekallin Date: Fri, 17 Nov 2023 00:47:35 +0400 Subject: [PATCH] uraaaaa mistake found --- .../DrawingElectricLocomotive.cs | 2 +- .../ProjectElectricLocomotive/ExtentionDrawningCar.cs | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ProjectElectricLocomotive/ProjectElectricLocomotive/DrawingElectricLocomotive.cs b/ProjectElectricLocomotive/ProjectElectricLocomotive/DrawingElectricLocomotive.cs index f944efc..f882f92 100644 --- a/ProjectElectricLocomotive/ProjectElectricLocomotive/DrawingElectricLocomotive.cs +++ b/ProjectElectricLocomotive/ProjectElectricLocomotive/DrawingElectricLocomotive.cs @@ -14,7 +14,7 @@ namespace ProjectElectricLocomotive.DrawingObjects { if (EntityLocomotive != null) { - EntityLocomotive = new EntityElectricLocomotive(speed, width, bodyColor, additionalColor, horns, seifBatteries); + EntityLocomotive = new EntityElectricLocomotive(speed, weight, bodyColor, additionalColor, horns, seifBatteries); } } public override void DrawTransport(Graphics g) diff --git a/ProjectElectricLocomotive/ProjectElectricLocomotive/ExtentionDrawningCar.cs b/ProjectElectricLocomotive/ProjectElectricLocomotive/ExtentionDrawningCar.cs index 788893c..f577133 100644 --- a/ProjectElectricLocomotive/ProjectElectricLocomotive/ExtentionDrawningCar.cs +++ b/ProjectElectricLocomotive/ProjectElectricLocomotive/ExtentionDrawningCar.cs @@ -69,10 +69,12 @@ namespace ProjectElectricLocomotive { return str; } - return - $"{str}{separatorForObject}{electroLoco.AdditionalColor.Name}{separatorForObject}" + - $"{electroLoco.Horns}{separatorForObject}{electroLoco.SeifBatteries}" /*+ - $"{separatorForObject}{electroLoco.SportLine}"*/; + else + { + return + $"{str}{separatorForObject}{electroLoco.AdditionalColor.Name}{separatorForObject}" + + $"{electroLoco.Horns}{separatorForObject}{electroLoco.SeifBatteries}"; + } } }