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 a47f8cb0 authored by Michael KRISPER's avatar Michael KRISPER
Browse files

added check for EngineSpeedTooHigh when shifting down

parent 939f407e
Branches
Tags
No related merge requests found
......@@ -1528,7 +1528,7 @@ namespace TUGraz.VectoCore.Models.SimulationComponent.Strategies
}
best = eval.Where(x => !double.IsNaN(x.Score)).OrderBy(x => x.Score).FirstOrDefault();
if (best != null) {
if (best != null && !(best.Gear != currentGear && best.IgnoreReason.EngineSpeedTooHigh())) {
return best;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment