diff --git a/2.5DHero/2.5DHero/Entites/Entity.vb b/2.5DHero/2.5DHero/Entites/Entity.vb index ce9e6ff00..cb0b7fc2d 100644 --- a/2.5DHero/2.5DHero/Entites/Entity.vb +++ b/2.5DHero/2.5DHero/Entites/Entity.vb @@ -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 diff --git a/2.5DHero/2.5DHero/World/Level.vb b/2.5DHero/2.5DHero/World/Level.vb index e7f743079..4e5e009a5 100644 --- a/2.5DHero/2.5DHero/World/Level.vb +++ b/2.5DHero/2.5DHero/World/Level.vb @@ -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