mirror of
https://github.com/P3D-Legacy/P3D-Legacy.git
synced 2025-04-08 18:35:09 +02:00
Changed a bit particle drawing fix
This commit is contained in:
parent
d8aec25f2f
commit
4595c78d8e
@ -371,7 +371,13 @@
|
||||
End If
|
||||
End If
|
||||
|
||||
CameraDistance = Vector3.Distance(Me.GetCameraDistanceCenterPoint(), CPosition)
|
||||
If Me.GetType = GetType(Particle)
|
||||
CameraDistance = Vector3.Distance(Me.GetCameraDistanceCenterPoint(), CPosition) - 1000000
|
||||
Else
|
||||
CameraDistance = Vector3.Distance(Me.GetCameraDistanceCenterPoint(), CPosition)
|
||||
End If
|
||||
|
||||
|
||||
|
||||
If Me.DropUpdateUnlessDrawn = True And Me.DrawnLastFrame = False And Me.Visible = True And ActionScriptActive = False Then
|
||||
Exit Sub
|
||||
|
@ -826,7 +826,6 @@ Public Class Level
|
||||
Public Sub SortEntities()
|
||||
If LevelLoader.IsBusy = False Then
|
||||
Entities = (From f In Entities Order By f.CameraDistance Descending).ToList()
|
||||
Entities = (From f In Entities Order By f.GetType Is GetType(Particle) Ascending).ToList()
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user