Code development platform for open source projects from the European Union institutions :large_blue_circle: EU Login authentication by SMS has been phased out. To see alternatives please check here

Skip to content
Snippets Groups Projects
Commit f343896b authored by Michael KRISPER's avatar Michael KRISPER
Browse files

fixed warning in EngineOnly mode (distance not available - no mileagecounter)

parent 496faabc
Branches
Tags
No related merge requests found
...@@ -209,7 +209,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl ...@@ -209,7 +209,7 @@ namespace TUGraz.VectoCore.Models.Simulation.Impl
public void CommitSimulationStep(Second time, Second simulationInterval) public void CommitSimulationStep(Second time, Second simulationInterval)
{ {
Log.Info("VehicleContainer committing simulation. time: {0}, dist: {1}, speed: {2}", time, Distance, VehicleSpeed); Log.Info("VehicleContainer committing simulation. time: {0}, dist: {1}, speed: {2}", time, ExecutionMode==ExecutionMode.EngineOnly ? null : Distance, VehicleSpeed);
foreach (var component in Components) { foreach (var component in Components) {
component.CommitSimulationStep(ModData); component.CommitSimulationStep(ModData);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment