@@ -919,9 +919,9 @@ public string GetDPDebugStatus()
919919
920920 var status = new StringBuilder ( ) ;
921921 status . AppendFormat ( "{0}({1})\t " , CarID , DPUnitID ) ;
922+ status . AppendFormat ( "{0}\t " , throttle ) ;
922923 status . AppendFormat ( "{0} {1}\t " , GetStringAttribute . GetPrettyName ( Direction ) , Flipped ? Simulator . Catalog . GetString ( "(flipped)" ) : "" ) ;
923924 status . AppendFormat ( "{0}\t " , IsLeadLocomotive ( ) || RemoteControlGroup < 0 ? "———" : RemoteControlGroup == 0 ? Simulator . Catalog . GetString ( "Sync" ) : Simulator . Catalog . GetString ( "Async" ) ) ;
924- status . AppendFormat ( "{0}\t " , throttle ) ;
925925 status . AppendFormat ( "{0}\t " , FormatStrings . FormatFuelVolume ( DieselLevelL , IsMetric , IsUK ) ) ;
926926 status . AppendFormat ( "{0}{1}" , FormatStrings . FormatForce ( MotiveForceN , IsMetric ) , CouplerOverloaded ? "???" : "" ) ;
927927 status . Append ( DieselEngines . GetDPStatus ( ) ) ;
@@ -1098,17 +1098,16 @@ public override string GetMultipleUnitsConfiguration()
10981098 private static string [ ] DpuLabels ;
10991099 private static string [ ] DPULabels ;
11001100
1101- private static void SetDebugLabels ( int numberOfEngines )
1101+ private static void SetDebugLabels ( )
11021102 {
1103- MaxNumberOfEngines = numberOfEngines ;
11041103 var labels = new StringBuilder ( ) ;
11051104 labels . AppendFormat ( "{0}\t " , Simulator . Catalog . GetString ( "ID" ) ) ;
11061105 labels . AppendFormat ( "{0}\t " , Simulator . Catalog . GetString ( "Throttle" ) ) ;
11071106 labels . AppendFormat ( "{0}\t " , Simulator . Catalog . GetParticularString ( "NonSteam" , "Reverser" ) ) ;
11081107 labels . AppendFormat ( "{0}\t " , Simulator . Catalog . GetString ( "Remote" ) ) ;
11091108 labels . AppendFormat ( "{0}\t " , Simulator . Catalog . GetString ( "Fuel" ) ) ;
11101109 labels . AppendFormat ( "{0}\t " , Simulator . Catalog . GetString ( "Tractive Effort" ) ) ;
1111- labels . Append ( DieselEngines . SetDebugLabels ( numberOfEngines ) ) ;
1110+ labels . Append ( DieselEngines . SetDebugLabels ( ) ) ;
11121111 DebugLabels = labels . ToString ( ) . Split ( '\t ' ) ;
11131112 }
11141113
@@ -1135,10 +1134,11 @@ private static void SetDPULabels(bool dpuFull, int numberOfEngines)
11351134 }
11361135 }
11371136
1138- public static string GetDebugTableBase ( int locomotivesInTrain , int maxNumberOfEngines )
1137+ public static string GetDebugTableBase ( int locomotivesInTrain )
11391138 {
1140- if ( MaxNumberOfEngines != maxNumberOfEngines || DebugLabels == null )
1141- SetDebugLabels ( maxNumberOfEngines ) ;
1139+ if ( DebugLabels == null )
1140+ SetDebugLabels ( ) ;
1141+
11421142 string table = "" ;
11431143 for ( var i = 0 ; i < DebugLabels . Length ; i ++ )
11441144 {
0 commit comments