Skip to content

Commit a95e579

Browse files
committed
Syntax fix
1 parent cb0f218 commit a95e579

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Source/Orts.Simulation/Simulation/RollingStocks/MSTSWagon.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -410,41 +410,41 @@ public virtual void LoadFromWagFile(string wagFilePath)
410410
var wagonFolderSlash = Path.GetDirectoryName(WagFilePath) + @"\";
411411
if (MainShapeFileName != null && !File.Exists(wagonFolderSlash + MainShapeFileName))
412412
{
413-
Trace.TraceWarning("{0} references non-existent shape {1}", wagFilePath, wagonFolderSlash + MainShapeFileName);
413+
Trace.TraceWarning("{0} references non-existent shape {1}", WagFilePath, wagonFolderSlash + MainShapeFileName);
414414
MainShapeFileName = string.Empty;
415415
}
416416
if (FreightShapeFileName != null && !File.Exists(wagonFolderSlash + FreightShapeFileName))
417417
{
418-
Trace.TraceWarning("{0} references non-existent shape {1}", wagFilePath, wagonFolderSlash + FreightShapeFileName);
418+
Trace.TraceWarning("{0} references non-existent shape {1}", WagFilePath, wagonFolderSlash + FreightShapeFileName);
419419
FreightShapeFileName = null;
420420
}
421421
if (InteriorShapeFileName != null && !File.Exists(wagonFolderSlash + InteriorShapeFileName))
422422
{
423-
Trace.TraceWarning("{0} references non-existent shape {1}", wagFilePath, wagonFolderSlash + InteriorShapeFileName);
423+
Trace.TraceWarning("{0} references non-existent shape {1}", WagFilePath, wagonFolderSlash + InteriorShapeFileName);
424424
InteriorShapeFileName = null;
425425
}
426426

427427
if (FrontCoupler.Closed.ShapeFileName != null && !File.Exists(wagonFolderSlash + FrontCoupler.Closed.ShapeFileName))
428428
{
429-
Trace.TraceWarning("{0} references non-existent shape {1}", wagFilePath, wagonFolderSlash + FrontCoupler.Closed.ShapeFileName);
429+
Trace.TraceWarning("{0} references non-existent shape {1}", WagFilePath, wagonFolderSlash + FrontCoupler.Closed.ShapeFileName);
430430
FrontCoupler.Closed.ShapeFileName = null;
431431
}
432432

433433
if (RearCoupler.Closed.ShapeFileName != null && !File.Exists(wagonFolderSlash + RearCoupler.Closed.ShapeFileName))
434434
{
435-
Trace.TraceWarning("{0} references non-existent shape {1}", wagFilePath, wagonFolderSlash + RearCoupler.Closed.ShapeFileName);
435+
Trace.TraceWarning("{0} references non-existent shape {1}", WagFilePath, wagonFolderSlash + RearCoupler.Closed.ShapeFileName);
436436
RearCoupler.Closed.ShapeFileName = null;
437437
}
438438

439439
if (FrontAirHose.Connected.ShapeFileName != null && !File.Exists(wagonFolderSlash + FrontAirHose.Connected.ShapeFileName))
440440
{
441-
Trace.TraceWarning("{0} references non-existent shape {1}", wagFilePath, wagonFolderSlash + FrontAirHose.Connected.ShapeFileName);
441+
Trace.TraceWarning("{0} references non-existent shape {1}", WagFilePath, wagonFolderSlash + FrontAirHose.Connected.ShapeFileName);
442442
FrontAirHose.Connected.ShapeFileName = null;
443443
}
444444

445445
if (RearAirHose.Connected.ShapeFileName != null && !File.Exists(wagonFolderSlash + RearAirHose.Connected.ShapeFileName))
446446
{
447-
Trace.TraceWarning("{0} references non-existent shape {1}", wagFilePath, wagonFolderSlash + RearAirHose.Connected.ShapeFileName);
447+
Trace.TraceWarning("{0} references non-existent shape {1}", WagFilePath, wagonFolderSlash + RearAirHose.Connected.ShapeFileName);
448448
RearAirHose.Connected.ShapeFileName = null;
449449
}
450450

@@ -780,7 +780,7 @@ public virtual void LoadFromWagFile(string wagFilePath)
780780
{
781781
if (ortsFreightAnim.ShapeFileName != null && !File.Exists(wagonFolderSlash + ortsFreightAnim.ShapeFileName))
782782
{
783-
Trace.TraceWarning("ORTS FreightAnim in trainset {0} references non-existent shape {1}", wagFilePath, wagonFolderSlash + ortsFreightAnim.ShapeFileName);
783+
Trace.TraceWarning("ORTS FreightAnim in trainset {0} references non-existent shape {1}", WagFilePath, wagonFolderSlash + ortsFreightAnim.ShapeFileName);
784784
ortsFreightAnim.ShapeFileName = null;
785785
}
786786

0 commit comments

Comments
 (0)