mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-07-24 22:35:47 +02:00
Fixed unproperly working Lighting map property
This commit is contained in:
parent
893c8acd99
commit
ae2d60eb35
@ -96,9 +96,6 @@ Public Class Lighting
|
|||||||
If Screen.Level.LightingType = 1 Then ' If the level lighting type is 1, disable lighting (set index to 99).
|
If Screen.Level.LightingType = 1 Then ' If the level lighting type is 1, disable lighting (set index to 99).
|
||||||
LightType = 99
|
LightType = 99
|
||||||
End If
|
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
|
|
||||||
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
|
||||||
@ -111,6 +108,9 @@ Public Class Lighting
|
|||||||
LightType = 3
|
LightType = 3
|
||||||
End Select
|
End Select
|
||||||
End If
|
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
|
||||||
|
|
||||||
Return LightType
|
Return LightType
|
||||||
End Function
|
End Function
|
||||||
|
Loading…
x
Reference in New Issue
Block a user