aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Tools/pCampBot/PhysicsBot.cs
diff options
context:
space:
mode:
authorJustin Clark-Casey (justincc)2011-10-31 21:33:25 +0000
committerJustin Clark-Casey (justincc)2011-10-31 21:33:25 +0000
commite3f51df3c27c5bc74bc69789d18015c538220935 (patch)
treef9965d81a3ccf0410229c636c03311c7d763ded6 /OpenSim/Tools/pCampBot/PhysicsBot.cs
parentPlug a security hole in the inventory service (diff)
downloadopensim-SC-e3f51df3c27c5bc74bc69789d18015c538220935.zip
opensim-SC-e3f51df3c27c5bc74bc69789d18015c538220935.tar.gz
opensim-SC-e3f51df3c27c5bc74bc69789d18015c538220935.tar.bz2
opensim-SC-e3f51df3c27c5bc74bc69789d18015c538220935.tar.xz
Stop pCampbot from firing connected event twice, which results in double counting.
Diffstat (limited to 'OpenSim/Tools/pCampBot/PhysicsBot.cs')
-rw-r--r--OpenSim/Tools/pCampBot/PhysicsBot.cs5
1 files changed, 3 insertions, 2 deletions
diff --git a/OpenSim/Tools/pCampBot/PhysicsBot.cs b/OpenSim/Tools/pCampBot/PhysicsBot.cs
index 5d4af31..de54836 100644
--- a/OpenSim/Tools/pCampBot/PhysicsBot.cs
+++ b/OpenSim/Tools/pCampBot/PhysicsBot.cs
@@ -165,7 +165,7 @@ namespace pCampBot
165 m_action.AutoReset = false; 165 m_action.AutoReset = false;
166 m_action.Elapsed += new ElapsedEventHandler(m_action_Elapsed); 166 m_action.Elapsed += new ElapsedEventHandler(m_action_Elapsed);
167 m_action.Start(); 167 m_action.Start();
168 OnConnected(this, EventType.CONNECTED); 168// OnConnected(this, EventType.CONNECTED);
169 if (wear == "save") 169 if (wear == "save")
170 { 170 {
171 client.Appearance.SetPreviousAppearance(); 171 client.Appearance.SetPreviousAppearance();
@@ -384,6 +384,7 @@ namespace pCampBot
384 { 384 {
385 client.Assets.RequestImage(prim.Textures.DefaultTexture.TextureID, ImageType.Normal, Asset_TextureCallback_Texture); 385 client.Assets.RequestImage(prim.Textures.DefaultTexture.TextureID, ImageType.Normal, Asset_TextureCallback_Texture);
386 } 386 }
387
387 for (int i = 0; i < prim.Textures.FaceTextures.Length; i++) 388 for (int i = 0; i < prim.Textures.FaceTextures.Length; i++)
388 { 389 {
389 if (prim.Textures.FaceTextures[i] != null) 390 if (prim.Textures.FaceTextures[i] != null)
@@ -392,10 +393,10 @@ namespace pCampBot
392 { 393 {
393 client.Assets.RequestImage(prim.Textures.FaceTextures[i].TextureID, ImageType.Normal, Asset_TextureCallback_Texture); 394 client.Assets.RequestImage(prim.Textures.FaceTextures[i].TextureID, ImageType.Normal, Asset_TextureCallback_Texture);
394 } 395 }
395
396 } 396 }
397 } 397 }
398 } 398 }
399
399 if (prim.Sculpt.SculptTexture != UUID.Zero) 400 if (prim.Sculpt.SculptTexture != UUID.Zero)
400 { 401 {
401 client.Assets.RequestImage(prim.Sculpt.SculptTexture, ImageType.Normal, Asset_TextureCallback_Texture); 402 client.Assets.RequestImage(prim.Sculpt.SculptTexture, ImageType.Normal, Asset_TextureCallback_Texture);