diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Prioritizer.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/Prioritizer.cs | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/Prioritizer.cs b/OpenSim/Region/Framework/Scenes/Prioritizer.cs index c75f8ba..cde8d3f 100644 --- a/OpenSim/Region/Framework/Scenes/Prioritizer.cs +++ b/OpenSim/Region/Framework/Scenes/Prioritizer.cs | |||
@@ -219,13 +219,15 @@ namespace OpenSim.Region.Framework.Scenes | |||
219 | 219 | ||
220 | private double GetPriorityByBestAvatarResponsiveness(IClientAPI client, ISceneEntity entity) | 220 | private double GetPriorityByBestAvatarResponsiveness(IClientAPI client, ISceneEntity entity) |
221 | { | 221 | { |
222 | // If this is an update for our own avatar give it the highest priority | ||
223 | if (client.AgentId == entity.UUID) | ||
224 | return 0.0; | ||
225 | if (entity == null) | ||
226 | return double.NaN; | ||
227 | |||
222 | ScenePresence presence = m_scene.GetScenePresence(client.AgentId); | 228 | ScenePresence presence = m_scene.GetScenePresence(client.AgentId); |
223 | if (presence != null) | 229 | if (presence != null) |
224 | { | 230 | { |
225 | // If this is an update for our own avatar give it the highest priority | ||
226 | if (presence == entity) | ||
227 | return 0.0; | ||
228 | |||
229 | // Use group position for child prims | 231 | // Use group position for child prims |
230 | Vector3 entityPos; | 232 | Vector3 entityPos; |
231 | if (entity is SceneObjectPart) | 233 | if (entity is SceneObjectPart) |