diff --git a/libsecondlife-cs/Avatar.cs b/libsecondlife-cs/Avatar.cs index ddb7c314..2f7c8842 100644 --- a/libsecondlife-cs/Avatar.cs +++ b/libsecondlife-cs/Avatar.cs @@ -652,7 +652,7 @@ namespace libsecondlife update.AgentData.CameraLeftAxis = new LLVector3(-0.7f, 0.7f, 0); update.AgentData.CameraUpAxis = new LLVector3(0.1822026f, 0.9828722f, 0); update.AgentData.Far = 384; - update.AgentData.ControlFlags = 0; // TODO: What is this? + update.AgentData.ControlFlags = 0; update.AgentData.Flags = 0; update.Header.Reliable = reliable; diff --git a/libsecondlife-cs/ObjectManager.cs b/libsecondlife-cs/ObjectManager.cs index 500ad43e..613b3fa8 100644 --- a/libsecondlife-cs/ObjectManager.cs +++ b/libsecondlife-cs/ObjectManager.cs @@ -75,6 +75,7 @@ namespace libsecondlife Prim = 9, Avatar = 47, Grass = 95, + ParticleSystem = 143, Tree = 255 } @@ -372,11 +373,14 @@ namespace libsecondlife // FIXME: Handle tree objects ; } + else if (block.PCode == (byte)PCode.ParticleSystem) + { + ; + } else { - // FIXME: Figure out what the unknown PCodes are - Client.Log("Got an ObjectUpdate block with an unhandled PCode " + - block.PCode, Helpers.LogLevel.Debug); + // FIXME: How many of the PCodes do we actually need to handle? + ; } } } @@ -684,13 +688,12 @@ namespace libsecondlife } else if (pcode == (byte)PCode.Grass || pcode == (byte)PCode.Tree) { - // TODO: + // TODO: Add new_tree and any other tree-like prims ; } else { - Client.Log("Got an ObjectUpdateCompressed block with unhandled PCode " + - pcode, Helpers.LogLevel.Debug); + // TODO: ... continue; } } diff --git a/libsecondlife-cs/Types.cs b/libsecondlife-cs/Types.cs index 7beac4a6..6f08ded1 100644 --- a/libsecondlife-cs/Types.cs +++ b/libsecondlife-cs/Types.cs @@ -658,20 +658,6 @@ namespace libsecondlife /// public byte[] GetBytes() { - //byte[] byteArray = new byte[16]; - - //Array.Copy(BitConverter.GetBytes(X), 0, byteArray, 0, 4); - //Array.Copy(BitConverter.GetBytes(Y), 0, byteArray, 4, 4); - //Array.Copy(BitConverter.GetBytes(Z), 0, byteArray, 8, 4); - //Array.Copy(BitConverter.GetBytes(W), 0, byteArray, 12, 4); - - //if(!BitConverter.IsLittleEndian) { - // Array.Reverse(byteArray, 0, 4); - // Array.Reverse(byteArray, 4, 4); - // Array.Reverse(byteArray, 8, 4); - // Array.Reverse(byteArray, 12, 4); - //} - byte[] bytes = new byte[12]; float norm;