diff --git a/P3D/World/Lighting.vb b/P3D/World/Lighting.vb index cf3de87a6..1f2877cd4 100644 --- a/P3D/World/Lighting.vb +++ b/P3D/World/Lighting.vb @@ -150,9 +150,6 @@ Public Class Lighting ' 4 = Always Day ' 5 = Always Evening - If Screen.Level.LightingType = 1 Then ' If the level lighting type is 1, disable lighting (set index to 99). - LightType = 99 - End If If Screen.Level.EnvironmentType = World.EnvironmentTypes.Outside Then Select Case Screen.Level.DayTime Case 1 @@ -165,6 +162,9 @@ Public Class Lighting LightType = 3 End Select End If + If Screen.Level.LightingType = 1 Then ' If the level lighting type is 1, disable lighting (set index to 99). + LightType = 99 + End If If Screen.Level.LightingType > 1 And Screen.Level.LightingType < 6 Then ' If the level's lighting type is 2, 3, 4 or 5, set to the respective LightType (set time of day). LightType = Screen.Level.LightingType - 2 End If