Finally made LightingType 6 function correctly

This commit is contained in:
JappaWakka 2022-11-26 14:41:30 +01:00
parent 6e2f925ba8
commit 4ed95f00c1
2 changed files with 5 additions and 1 deletions

View File

@ -17,7 +17,7 @@
Screen.Effect.DiffuseColor = effectDiffuseColor * Entity.Shader * Entity.Color
If Screen.Level.IsDark = True Then
If Screen.Level.IsDark = True OrElse Screen.Level.LightingType = 6 Then
Screen.Effect.DiffuseColor *= New Vector3(0.5, 0.5, 0.5)
End If

View File

@ -168,6 +168,10 @@ Public Class Lighting
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
If Screen.Level.LightingType = 6 AndAlso Screen.Level.EnvironmentType = 1 OrElse Screen.Level.LightingType > 6 Then
LightType = 99
End If
Return LightType
End Function