@@ -417,21 +417,17 @@ public string GetStatus()
417417 foreach ( var eng in DEList )
418418 result . AppendFormat ( "\t {0}" , Simulator . Catalog . GetParticularString ( "Engine" , GetStringAttribute . GetPrettyName ( eng . State ) ) ) ;
419419
420- result . AppendFormat ( "\t {0}\t {1}" , Simulator . Catalog . GetParticularString ( "HUD" , "Power" ) , FormatStrings . FormatPower ( MaxOutputPowerW , Locomotive . IsMetric , false , false ) ) ;
421-
422420 if ( Locomotive . DieselTransmissionType == MSTSDieselLocomotive . DieselTransmissionTypes . Mechanic )
423421 {
424-
422+ result . AppendFormat ( " \t {0} \t {1}" , Simulator . Catalog . GetParticularString ( "HUD" , "Power" ) , Simulator . Catalog . GetString ( " " ) ) ; // Leave maximum power out
425423 foreach ( var eng in DEList )
426424 {
427- // Power(Watts) = Torque(Nm) * rpm / 9.54.
428- var tempPowerDisplay = eng . GearBox . torqueCurveMultiplier * eng . DieselTorqueTab [ eng . RealRPM ] * eng . RealRPM / 9.54f ;
429- tempPowerDisplay = MathHelper . Clamp ( tempPowerDisplay , 0 , MaxOutputPowerW ) ; // Clamp throttle setting within bounds
430- result . AppendFormat ( "\t {0}" , FormatStrings . FormatPower ( tempPowerDisplay , Locomotive . IsMetric , false , false ) ) ;
425+ result . AppendFormat ( "\t {0}" , FormatStrings . FormatPower ( eng . CurrentDieselOutputPowerW , Locomotive . IsMetric , false , false ) ) ;
431426 }
432427 }
433428 else
434429 {
430+ result . AppendFormat ( "\t {0}\t {1}" , Simulator . Catalog . GetParticularString ( "HUD" , "Power" ) , FormatStrings . FormatPower ( MaxOutputPowerW , Locomotive . IsMetric , false , false ) ) ;
435431 foreach ( var eng in DEList )
436432 result . AppendFormat ( "\t {0}" , FormatStrings . FormatPower ( eng . CurrentDieselOutputPowerW , Locomotive . IsMetric , false , false ) ) ;
437433 }
@@ -1434,7 +1430,9 @@ public void Update(float elapsedClockSeconds)
14341430 // so set output power based upon throttle demanded power
14351431 if ( HasGearBox && Locomotive . DieselTransmissionType == MSTSDieselLocomotive . DieselTransmissionTypes . Mechanic )
14361432 {
1437- CurrentDieselOutputPowerW = ( ThrottleRPMTab [ demandedThrottlePercent ] - IdleRPM ) / ( MaxRPM - IdleRPM ) * MaximumDieselPowerW * ( 1 - Locomotive . PowerReduction ) ;
1433+ // Power(Watts) = Torque(Nm) * rpm / 9.54.
1434+ CurrentDieselOutputPowerW = GearBox . torqueCurveMultiplier * DieselTorqueTab [ RealRPM ] * RealRPM / 9.54f ;
1435+ CurrentDieselOutputPowerW = MathHelper . Clamp ( CurrentDieselOutputPowerW , 0 , MaximumDieselPowerW ) ; // Clamp throttle setting within bounds
14381436 }
14391437
14401438 if ( Locomotive . DieselEngines . NumOfActiveEngines > 0 )
0 commit comments