Skip to content

Commit 794fddf

Browse files
committed
Correct Decrease Colour
1 parent ebafd5d commit 794fddf

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Source/RunActivity/Viewer3D/RollingStock/MSTSLocomotiveViewer.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2999,6 +2999,7 @@ public override void PrepareFrame(RenderFrame frame, ElapsedTime elapsedTime)
29992999
// <CSComment> Now speedometer is handled like the other digitals
30003000

30013001
base.PrepareFrame(frame, elapsedTime);
3002+
digital.OldValue = Num;
30023003
}
30033004

30043005
public override void Draw(GraphicsDevice graphicsDevice)
@@ -3072,6 +3073,8 @@ public string GetDigits(out Color DrawColor)
30723073
displayedText = String.Format(Format, Num);
30733074
DrawColor = Color.White;
30743075
}
3076+
digital.OldValue = Num;
3077+
30753078
// <CSComment> Speedometer is now managed like the other digitals
30763079

30773080
return displayedText;
@@ -3148,6 +3151,8 @@ public string GetDigits(out Color DrawColor)
31483151
{
31493152
displayedText = String.Format(Format, Num);
31503153
}
3154+
digital.OldValue = Num;
3155+
31513156
// <CSComment> Speedometer is now managed like the other digitals
31523157

31533158
return displayedText;

0 commit comments

Comments
 (0)