Fixed lightingtype 1 not disabling lighting

This commit is contained in:
JappaWakka 2022-10-08 20:36:59 +02:00
parent 683c21ba09
commit 7ca13b1a8d
1 changed files with 3 additions and 3 deletions

View File

@ -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