File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Source/Orts.Simulation/Simulation/RollingStocks/SubSystems Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -695,6 +695,8 @@ public void UpdateEmptyFreightAnims(float containerLengthM)
695695 if ( Math . Abs ( emptyAnim . Offset . Z - Offset . Z ) < FullSuperpositionTolerance ) emptyAnim . LoadPosition = LoadPosition . Center ;
696696 else if ( Math . Abs ( emptyAnim . LoadingAreaLength + anim . LoadingAreaLength - LoadingAreaLength / 2 ) < FullSuperpositionTolerance )
697697 emptyAnim . LoadPosition = anim . LoadPosition == LoadPosition . Front ? LoadPosition . CenterFront : LoadPosition . CenterRear ;
698+ else if ( emptyAnim . LoadingAreaLength + EmptySuperpositionTolerance > Container . Length20ftM )
699+ emptyAnim . LoadPosition = anim . LoadPosition == LoadPosition . Front ? LoadPosition . CenterRear : LoadPosition . CenterFront ;
698700 continue ;
699701 }
700702 }
You can’t perform that action at this time.
0 commit comments