From 84dc744faaf334f9c42fb988a38a8a67a0bdc6cc Mon Sep 17 00:00:00 2001 From: Adam Frisby Date: Wed, 30 May 2007 04:32:30 +0000 Subject: * World map! Yay! * Using ASCII encoding for text not UTF8 encoding (causes the client to burp) * Cannot send uints via Nwc.XmlRpc - it asplodes and returns zero. --- OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'OpenSim') diff --git a/OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs b/OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs index 4a978ab..b4192cc 100644 --- a/OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs +++ b/OpenSim/OpenSim.RegionServer/ClientView.PacketHandlers.cs @@ -153,7 +153,7 @@ namespace OpenSim { Hashtable mp = (Hashtable)simMapProfiles[iii]; mbReply.Data[iii] = new MapBlockReplyPacket.DataBlock(); - mbReply.Data[iii].Name = System.Text.Encoding.UTF8.GetBytes((string)mp["name"]); + mbReply.Data[iii].Name = System.Text.Encoding.ASCII.GetBytes((string)mp["name"]); mbReply.Data[iii].Access = System.Convert.ToByte(mp["access"]); mbReply.Data[iii].Agents = System.Convert.ToByte(mp["agents"]); mbReply.Data[iii].MapImageID = new LLUUID((string)mp["map-image-id"]); @@ -162,6 +162,8 @@ namespace OpenSim mbReply.Data[iii].X = System.Convert.ToUInt16(mp["x"]); mbReply.Data[iii].Y = System.Convert.ToUInt16(mp["y"]); } + //Console.WriteLine("ADAMDEBUG: Queuing MapBlockReply #" + i.ToString() + " Contains " + iii.ToString() + " region(s)"); + //Console.WriteLine(mbReply.ToString()); this.OutPacket(mbReply); } } -- cgit v1.1