aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs11
1 files changed, 6 insertions, 5 deletions
diff --git a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
index 9ec4740..226608a 100644
--- a/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
+++ b/OpenSim/Region/OptionalModules/World/NPC/NPCModule.cs
@@ -170,9 +170,9 @@ namespace OpenSim.Region.OptionalModules.World.NPC
170 } 170 }
171 */ 171 */
172 172
173 ManualResetEvent ev = new ManualResetEvent(false); 173// ManualResetEvent ev = new ManualResetEvent(false);
174 174
175 Util.FireAndForget(delegate(object x) { 175// Util.FireAndForget(delegate(object x) {
176 lock (m_avatars) 176 lock (m_avatars)
177 { 177 {
178 scene.AuthenticateHandler.AddNewCircuit(npcAvatar.CircuitCode, acd); 178 scene.AuthenticateHandler.AddNewCircuit(npcAvatar.CircuitCode, acd);
@@ -181,15 +181,16 @@ namespace OpenSim.Region.OptionalModules.World.NPC
181 ScenePresence sp; 181 ScenePresence sp;
182 if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp)) 182 if (scene.TryGetScenePresence(npcAvatar.AgentId, out sp))
183 { 183 {
184
184 sp.CompleteMovement(npcAvatar, false); 185 sp.CompleteMovement(npcAvatar, false);
185 m_avatars.Add(npcAvatar.AgentId, npcAvatar); 186 m_avatars.Add(npcAvatar.AgentId, npcAvatar);
186// m_log.DebugFormat("[NPC MODULE]: Created NPC {0} {1}", npcAvatar.AgentId, sp.Name); 187// m_log.DebugFormat("[NPC MODULE]: Created NPC {0} {1}", npcAvatar.AgentId, sp.Name);
187 } 188 }
188 } 189 }
189 ev.Set(); 190// ev.Set();
190 }); 191// });
191 192
192 ev.WaitOne(); 193// ev.WaitOne();
193 194
194// m_log.DebugFormat("[NPC MODULE]: Created NPC with id {0}", npcAvatar.AgentId); 195// m_log.DebugFormat("[NPC MODULE]: Created NPC with id {0}", npcAvatar.AgentId);
195 196