Skip to content

Commit 2fe1e5d

Browse files
authored
Merge pull request #478 from Csantucci/3dcab-fix-for-alert-colour-not-displayed
Bug fix for https://bugs.launchpad.net/or/+bug/1943307 In 3d cabs Alert colour not displayed
2 parents 0d1bd9f + 7e76ed9 commit 2fe1e5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/RunActivity/Viewer3D/RollingStock/MSTSLocomotiveViewer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2997,11 +2997,11 @@ Material FindMaterial(bool Alert)
29972997
CABViewControlTypes controltype = CVFR.GetControlType();
29982998
Material material = null;
29992999

3000-
if (AceFile != "")
3000+
if (Alert) { imageName = "alert.ace"; }
3001+
else if (AceFile != "")
30013002
{
30023003
imageName = AceFile;
30033004
}
3004-
else if (Alert) { imageName = "alert.ace"; }
30053005
else
30063006
{
30073007
switch (controltype)

0 commit comments

Comments
 (0)