aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.RegionServer/world
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/OpenSim.RegionServer/world')
-rw-r--r--OpenSim/OpenSim.RegionServer/world/ParcelManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/OpenSim.RegionServer/world/ParcelManager.cs b/OpenSim/OpenSim.RegionServer/world/ParcelManager.cs
index c751b0b..c3de54e 100644
--- a/OpenSim/OpenSim.RegionServer/world/ParcelManager.cs
+++ b/OpenSim/OpenSim.RegionServer/world/ParcelManager.cs
@@ -654,7 +654,7 @@ namespace OpenSim.RegionServer.world
654 /// <returns></returns> 654 /// <returns></returns>
655 private byte[] convertParcelBitmapToBytes() 655 private byte[] convertParcelBitmapToBytes()
656 { 656 {
657 byte[] tempConvertArr = new byte[64 * 64 / 8]; 657 byte[] tempConvertArr = new byte[512];
658 byte tempByte = 0; 658 byte tempByte = 0;
659 int x, y, i, byteNum = 0; 659 int x, y, i, byteNum = 0;
660 i = 0; 660 i = 0;
@@ -684,7 +684,7 @@ namespace OpenSim.RegionServer.world
684 for(i = 0; i < 512; i++) 684 for(i = 0; i < 512; i++)
685 { 685 {
686 tempByte = parcelData.parcelBitmapByteArray[i]; 686 tempByte = parcelData.parcelBitmapByteArray[i];
687 for(bitNum = 7; bitNum >= 0; bitNum--) 687 for(bitNum = 0; bitNum < 8; bitNum++)
688 { 688 {
689 bool bit = Convert.ToBoolean(Convert.ToByte(tempByte >> bitNum) & (byte)1); 689 bool bit = Convert.ToBoolean(Convert.ToByte(tempByte >> bitNum) & (byte)1);
690 tempConvertMap[x, y] = bit; 690 tempConvertMap[x, y] = bit;