aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
diff options
context:
space:
mode:
authorCharles Krinke2007-12-17 16:41:28 +0000
committerCharles Krinke2007-12-17 16:41:28 +0000
commita990c64698d465a6ed1694cdaa526254f8063663 (patch)
tree9833c5eb8a95ad44dcea0f84769703323d488a6e /OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
parentThank you, Kiryu for a patch to fix out of sync error in UDP server (diff)
downloadopensim-SC_OLD-a990c64698d465a6ed1694cdaa526254f8063663.zip
opensim-SC_OLD-a990c64698d465a6ed1694cdaa526254f8063663.tar.gz
opensim-SC_OLD-a990c64698d465a6ed1694cdaa526254f8063663.tar.bz2
opensim-SC_OLD-a990c64698d465a6ed1694cdaa526254f8063663.tar.xz
Thank you to Kiryu for a patch to fix an out of Sync
error in Scene. Affects 6 files and is Mantis#201
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs')
-rw-r--r--OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs12
1 files changed, 9 insertions, 3 deletions
diff --git a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
index aa7c7b4..6a7c266 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.PacketHandlers.cs
@@ -97,7 +97,9 @@ namespace OpenSim.Region.Environment.Scenes
97 /// <param name="remoteClient"></param> 97 /// <param name="remoteClient"></param>
98 public void SelectPrim(uint primLocalID, IClientAPI remoteClient) 98 public void SelectPrim(uint primLocalID, IClientAPI remoteClient)
99 { 99 {
100 foreach (EntityBase ent in Entities.Values) 100 List<EntityBase> EntitieList = GetEntities();
101
102 foreach (EntityBase ent in EntitieList)
101 { 103 {
102 if (ent is SceneObjectGroup) 104 if (ent is SceneObjectGroup)
103 { 105 {
@@ -119,7 +121,9 @@ namespace OpenSim.Region.Environment.Scenes
119 /// <param name="remoteClient"></param> 121 /// <param name="remoteClient"></param>
120 public void DeselectPrim(uint primLocalID, IClientAPI remoteClient) 122 public void DeselectPrim(uint primLocalID, IClientAPI remoteClient)
121 { 123 {
122 foreach (EntityBase ent in Entities.Values) 124 List<EntityBase> EntitieList = GetEntities();
125
126 foreach (EntityBase ent in EntitieList)
123 { 127 {
124 if (ent is SceneObjectGroup) 128 if (ent is SceneObjectGroup)
125 { 129 {
@@ -137,7 +141,9 @@ namespace OpenSim.Region.Environment.Scenes
137 { 141 {
138 EventManager.TriggerObjectGrab(localID, offsetPos, remoteClient); 142 EventManager.TriggerObjectGrab(localID, offsetPos, remoteClient);
139 143
140 foreach (EntityBase ent in Entities.Values) 144 List<EntityBase> EntitieList = GetEntities();
145
146 foreach (EntityBase ent in EntitieList)
141 { 147 {
142 if (ent is SceneObjectGroup) 148 if (ent is SceneObjectGroup)
143 { 149 {