From 9fdd4946c3a52d5cc95d57e9f05ddaca0a3a407f Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Sun, 15 Jul 2007 18:10:49 +0000 Subject: * Fixed an issue where world map blocks were not transmitted correctly. --- OpenSim/Region/ClientStack/ClientView.API.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/OpenSim/Region/ClientStack/ClientView.API.cs b/OpenSim/Region/ClientStack/ClientView.API.cs index b368ab7..5458795 100644 --- a/OpenSim/Region/ClientStack/ClientView.API.cs +++ b/OpenSim/Region/ClientStack/ClientView.API.cs @@ -396,8 +396,6 @@ namespace OpenSim.Region.ClientStack public void SendMapBlock(List mapBlocks) { - Encoding _enc = Encoding.ASCII; - MapBlockReplyPacket mapReply = new MapBlockReplyPacket(); mapReply.AgentData.AgentID = this.AgentID; mapReply.Data = new MapBlockReplyPacket.DataBlock[mapBlocks.Count]; @@ -410,7 +408,7 @@ namespace OpenSim.Region.ClientStack mapReply.Data[i].X = mapBlocks[i].X; mapReply.Data[i].Y = mapBlocks[i].Y; mapReply.Data[i].WaterHeight = mapBlocks[i].WaterHeight; - mapReply.Data[i].Name = _enc.GetBytes(mapBlocks[i].Name); + mapReply.Data[i].Name = Helpers.StringToField(mapBlocks[i].Name); mapReply.Data[i].RegionFlags = mapBlocks[i].RegionFlags; mapReply.Data[i].Access = mapBlocks[i].Access; mapReply.Data[i].Agents = mapBlocks[i].Agents; -- cgit v1.1