mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-24 22:35:47 +02:00
Fixed lightingtype 1 not disabling lighting
This commit is contained in:
parent
683c21ba09
commit
7ca13b1a8d
@ -150,9 +150,6 @@ Public Class Lighting
|
|||||||
' 4 = Always Day
|
' 4 = Always Day
|
||||||
' 5 = Always Evening
|
' 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
|
If Screen.Level.EnvironmentType = World.EnvironmentTypes.Outside Then
|
||||||
Select Case Screen.Level.DayTime
|
Select Case Screen.Level.DayTime
|
||||||
Case 1
|
Case 1
|
||||||
@ -165,6 +162,9 @@ Public Class Lighting
|
|||||||
LightType = 3
|
LightType = 3
|
||||||
End Select
|
End Select
|
||||||
End If
|
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).
|
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
|
LightType = Screen.Level.LightingType - 2
|
||||||
End If
|
End If
|
||||||
|
Loading…
x
Reference in New Issue
Block a user