Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Csantucci committed Nov 19, 2022
1 parent bc3a13b commit 6ca89da
Showing 1 changed file with 2 additions and 3 deletions.
Expand Up @@ -5389,15 +5389,14 @@ public virtual float GetDataOf(CabViewControl cvc)

case CABViewControlTypes.THROTTLE:
{
if (CruiseControl.SkipThrottleDisplay) break;
if (CruiseControl != null && CruiseControl.SkipThrottleDisplay) break;
data = GetThrottleHandleValue(Train.TrainType == Train.TRAINTYPE.AI_PLAYERHOSTING ? ThrottlePercent / 100f : LocalThrottlePercent / 100f);
break;
}
case CABViewControlTypes.THROTTLE_DISPLAY:
case CABViewControlTypes.CPH_DISPLAY:
{
if (CruiseControl != null)
if (CruiseControl.SkipThrottleDisplay) break;
if (CruiseControl != null && CruiseControl.SkipThrottleDisplay) break;
data = Train.TrainType == Train.TRAINTYPE.AI_PLAYERHOSTING? ThrottlePercent / 100f : LocalThrottlePercent / 100f;
break;
}
Expand Down

0 comments on commit 6ca89da

Please sign in to comment.