Skip to content

Commit a0ffa96

Browse files
committed
Revert dynBrakePercent change to resolve conflict
1 parent 1ef52c6 commit a0ffa96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Source/RunActivity/Viewer3D/RollingStock/MSTSLocomotiveViewer.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2130,7 +2130,8 @@ public virtual int GetDrawIndex()
21302130
break;
21312131
case CABViewControlTypes.DYNAMIC_BRAKE:
21322132
case CABViewControlTypes.DYNAMIC_BRAKE_DISPLAY:
2133-
var dynBrakePercent = Locomotive.DynamicBrakeController.CurrentValue;
2133+
var dynBrakePercent = Locomotive.Train.TrainType == Train.TRAINTYPE.AI_PLAYERHOSTING ?
2134+
Locomotive.DynamicBrakePercent : Locomotive.LocalDynamicBrakePercent;
21342135
if (Locomotive.DynamicBrakeController != null)
21352136
{
21362137
if (dynBrakePercent <= 0)

0 commit comments

Comments
 (0)