Skip to content

Commit 3baea56

Browse files
author
carlossantucci
committed
Bug fix for https://bugs.launchpad.net/or/+bug/1810115 Typo error in computing colour components of diesel exhaust.
git-svn-id: http://svn.uktrainsim.com/svn/openrails/trunk@4333 a9f3cfff-6c41-7446-b0ca-052bd761e6eb
1 parent d4b0b7d commit 3baea56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/RunActivity/Viewer3D/RollingStock/MSTSDieselLocomotiveViewer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public override void PrepareFrame(RenderFrame frame, ElapsedTime elapsedTime)
8888
{
8989
var colorR = car.ExhaustColorR.SmoothedValue / 255f;
9090
var colorG = car.ExhaustColorG.SmoothedValue / 255f;
91-
var colorB = car.ExhaustColorG.SmoothedValue / 255f;
91+
var colorB = car.ExhaustColorB.SmoothedValue / 255f;
9292
drawer.SetOutput(exhaustParticles, car.ExhaustMagnitude.SmoothedValue, new Color((byte)car.ExhaustColorR.SmoothedValue, (byte)car.ExhaustColorG.SmoothedValue, (byte)car.ExhaustColorB.SmoothedValue));
9393
}
9494

0 commit comments

Comments
 (0)