aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ClientStack/ClientView.cs13
-rw-r--r--OpenSim/Region/Environment/EstateManager.cs5
-rw-r--r--OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs3
3 files changed, 2 insertions, 19 deletions
diff --git a/OpenSim/Region/ClientStack/ClientView.cs b/OpenSim/Region/ClientStack/ClientView.cs
index 23354a1..0f8e196 100644
--- a/OpenSim/Region/ClientStack/ClientView.cs
+++ b/OpenSim/Region/ClientStack/ClientView.cs
@@ -1164,8 +1164,6 @@ namespace OpenSim.Region.ClientStack
1164 // 6 to 7 items at a time, so let's stick with 6 1164 // 6 to 7 items at a time, so let's stick with 6
1165 int MAX_ITEMS_PER_PACKET = 6; 1165 int MAX_ITEMS_PER_PACKET = 6;
1166 1166
1167 // ENCODING FAULT
1168 Encoding enc = Encoding.UTF8;
1169 uint FULL_MASK_PERMISSIONS = 2147483647; 1167 uint FULL_MASK_PERMISSIONS = 2147483647;
1170 1168
1171 if (fetchItems) 1169 if (fetchItems)
@@ -1336,8 +1334,6 @@ namespace OpenSim.Region.ClientStack
1336 1334
1337 public void SendInventoryItemDetails(LLUUID ownerID, InventoryItemBase item) 1335 public void SendInventoryItemDetails(LLUUID ownerID, InventoryItemBase item)
1338 { 1336 {
1339 // ENCODING FAULT
1340 Encoding enc = Encoding.UTF8;
1341 uint FULL_MASK_PERMISSIONS = (uint)PermissionMask.All; 1337 uint FULL_MASK_PERMISSIONS = (uint)PermissionMask.All;
1342 FetchInventoryReplyPacket inventoryReply = (FetchInventoryReplyPacket)PacketPool.Instance.GetPacket(PacketType.FetchInventoryReply); 1338 FetchInventoryReplyPacket inventoryReply = (FetchInventoryReplyPacket)PacketPool.Instance.GetPacket(PacketType.FetchInventoryReply);
1343 // TODO: don't create new blocks if recycling an old packet 1339 // TODO: don't create new blocks if recycling an old packet
@@ -1379,8 +1375,6 @@ namespace OpenSim.Region.ClientStack
1379 /// <see>IClientAPI.SendInventoryItemCreateUpdate(InventoryItemBase)</see> 1375 /// <see>IClientAPI.SendInventoryItemCreateUpdate(InventoryItemBase)</see>
1380 public void SendInventoryItemCreateUpdate(InventoryItemBase Item) 1376 public void SendInventoryItemCreateUpdate(InventoryItemBase Item)
1381 { 1377 {
1382 // ENCODING FAULT
1383 Encoding enc = Encoding.UTF8;
1384 uint FULL_MASK_PERMISSIONS = (uint)PermissionMask.All; 1378 uint FULL_MASK_PERMISSIONS = (uint)PermissionMask.All;
1385 UpdateCreateInventoryItemPacket InventoryReply = (UpdateCreateInventoryItemPacket)PacketPool.Instance.GetPacket(PacketType.UpdateCreateInventoryItem); 1379 UpdateCreateInventoryItemPacket InventoryReply = (UpdateCreateInventoryItemPacket)PacketPool.Instance.GetPacket(PacketType.UpdateCreateInventoryItem);
1386 // TODO: don't create new blocks if recycling an old packet 1380 // TODO: don't create new blocks if recycling an old packet
@@ -2215,12 +2209,10 @@ namespace OpenSim.Region.ClientStack
2215 { 2209 {
2216 objdata.TextureEntry = textureEntry; 2210 objdata.TextureEntry = textureEntry;
2217 } 2211 }
2218 // ENCODING FAULT
2219 Encoding enc = Encoding.UTF8;
2220 LLVector3 pos = new LLVector3(objdata.ObjectData, 16); 2212 LLVector3 pos = new LLVector3(objdata.ObjectData, 16);
2221 pos.X = 100f; 2213 pos.X = 100f;
2222 objdata.ID = 8880000; 2214 objdata.ID = 8880000;
2223 objdata.NameValue = enc.GetBytes("FirstName STRING RW SV Test \nLastName STRING RW SV User \0"); 2215 objdata.NameValue = Helpers.StringToField("FirstName STRING RW SV Test \nLastName STRING RW SV User ");
2224 //LLVector3 pos2 = new LLVector3(100f, 100f, 23f); 2216 //LLVector3 pos2 = new LLVector3(100f, 100f, 23f);
2225 //objdata.FullID=user.AgentId; 2217 //objdata.FullID=user.AgentId;
2226 byte[] pb = pos.GetBytes(); 2218 byte[] pb = pos.GetBytes();
@@ -2944,9 +2936,6 @@ namespace OpenSim.Region.ClientStack
2944 } 2936 }
2945 else 2937 else
2946 { 2938 {
2947 // ENCODING FAULT
2948 Encoding _enc = Encoding.UTF8;
2949
2950 switch (Pack.Type) 2939 switch (Pack.Type)
2951 { 2940 {
2952 #region Scene/Avatar 2941 #region Scene/Avatar
diff --git a/OpenSim/Region/Environment/EstateManager.cs b/OpenSim/Region/Environment/EstateManager.cs
index 9c53f38..f097b61 100644
--- a/OpenSim/Region/Environment/EstateManager.cs
+++ b/OpenSim/Region/Environment/EstateManager.cs
@@ -634,9 +634,6 @@ namespace OpenSim.Region.Environment
634 634
635 public void sendRegionInfoPacket(IClientAPI remote_client) 635 public void sendRegionInfoPacket(IClientAPI remote_client)
636 { 636 {
637 // ENCODING FAULT
638 Encoding _enc = Encoding.UTF8;
639
640 AgentCircuitData circuitData = remote_client.RequestClientInfo(); 637 AgentCircuitData circuitData = remote_client.RequestClientInfo();
641 638
642 RegionInfoPacket regionInfoPacket = new RegionInfoPacket(); 639 RegionInfoPacket regionInfoPacket = new RegionInfoPacket();
@@ -652,7 +649,7 @@ namespace OpenSim.Region.Environment
652 regionInfoPacket.RegionInfo.RedirectGridY = m_regInfo.EstateSettings.redirectGridY; 649 regionInfoPacket.RegionInfo.RedirectGridY = m_regInfo.EstateSettings.redirectGridY;
653 regionInfoPacket.RegionInfo.RegionFlags = (uint) m_regInfo.EstateSettings.regionFlags; 650 regionInfoPacket.RegionInfo.RegionFlags = (uint) m_regInfo.EstateSettings.regionFlags;
654 regionInfoPacket.RegionInfo.SimAccess = (byte) m_regInfo.EstateSettings.simAccess; 651 regionInfoPacket.RegionInfo.SimAccess = (byte) m_regInfo.EstateSettings.simAccess;
655 regionInfoPacket.RegionInfo.SimName = _enc.GetBytes(m_regInfo.RegionName); 652 regionInfoPacket.RegionInfo.SimName = Helpers.StringToField(m_regInfo.RegionName);
656 regionInfoPacket.RegionInfo.SunHour = m_regInfo.EstateSettings.sunHour; 653 regionInfoPacket.RegionInfo.SunHour = m_regInfo.EstateSettings.sunHour;
657 regionInfoPacket.RegionInfo.TerrainLowerLimit = m_regInfo.EstateSettings.terrainLowerLimit; 654 regionInfoPacket.RegionInfo.TerrainLowerLimit = m_regInfo.EstateSettings.terrainLowerLimit;
658 regionInfoPacket.RegionInfo.TerrainRaiseLimit = m_regInfo.EstateSettings.terrainRaiseLimit; 655 regionInfoPacket.RegionInfo.TerrainRaiseLimit = m_regInfo.EstateSettings.terrainRaiseLimit;
diff --git a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
index b0ed04e..c83027d 100644
--- a/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
+++ b/OpenSim/Region/Environment/Scenes/SceneObjectGroup.cs
@@ -45,9 +45,6 @@ namespace OpenSim.Region.Environment.Scenes
45 45
46 public partial class SceneObjectGroup : EntityBase 46 public partial class SceneObjectGroup : EntityBase
47 { 47 {
48 // ENCODING FAULT
49 private Encoding enc = Encoding.UTF8;
50
51 protected SceneObjectPart m_rootPart; 48 protected SceneObjectPart m_rootPart;
52 49
53 /// <summary> 50 /// <summary>