diff options
Diffstat (limited to 'OpenSim')
-rw-r--r-- | OpenSim/Region/ClientStack/ClientView.API.cs | 4 |
1 files changed, 1 insertions, 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 | |||
396 | 396 | ||
397 | public void SendMapBlock(List<MapBlockData> mapBlocks) | 397 | public void SendMapBlock(List<MapBlockData> mapBlocks) |
398 | { | 398 | { |
399 | Encoding _enc = Encoding.ASCII; | ||
400 | |||
401 | MapBlockReplyPacket mapReply = new MapBlockReplyPacket(); | 399 | MapBlockReplyPacket mapReply = new MapBlockReplyPacket(); |
402 | mapReply.AgentData.AgentID = this.AgentID; | 400 | mapReply.AgentData.AgentID = this.AgentID; |
403 | mapReply.Data = new MapBlockReplyPacket.DataBlock[mapBlocks.Count]; | 401 | mapReply.Data = new MapBlockReplyPacket.DataBlock[mapBlocks.Count]; |
@@ -410,7 +408,7 @@ namespace OpenSim.Region.ClientStack | |||
410 | mapReply.Data[i].X = mapBlocks[i].X; | 408 | mapReply.Data[i].X = mapBlocks[i].X; |
411 | mapReply.Data[i].Y = mapBlocks[i].Y; | 409 | mapReply.Data[i].Y = mapBlocks[i].Y; |
412 | mapReply.Data[i].WaterHeight = mapBlocks[i].WaterHeight; | 410 | mapReply.Data[i].WaterHeight = mapBlocks[i].WaterHeight; |
413 | mapReply.Data[i].Name = _enc.GetBytes(mapBlocks[i].Name); | 411 | mapReply.Data[i].Name = Helpers.StringToField(mapBlocks[i].Name); |
414 | mapReply.Data[i].RegionFlags = mapBlocks[i].RegionFlags; | 412 | mapReply.Data[i].RegionFlags = mapBlocks[i].RegionFlags; |
415 | mapReply.Data[i].Access = mapBlocks[i].Access; | 413 | mapReply.Data[i].Access = mapBlocks[i].Access; |
416 | mapReply.Data[i].Agents = mapBlocks[i].Agents; | 414 | mapReply.Data[i].Agents = mapBlocks[i].Agents; |