From a4c01a3258eabc0bac52541d8a61fd1203ee3cf6 Mon Sep 17 00:00:00 2001 From: mingchen Date: Wed, 6 Jun 2007 21:26:07 +0000 Subject: [PATCH] *Fixed Parcel backup in databased (finished fixing core parcel functions) --- OpenSim/OpenSim.RegionServer/world/ParcelManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/OpenSim.RegionServer/world/ParcelManager.cs b/OpenSim/OpenSim.RegionServer/world/ParcelManager.cs index c751b0be6e..c3de54e72b 100644 --- a/OpenSim/OpenSim.RegionServer/world/ParcelManager.cs +++ b/OpenSim/OpenSim.RegionServer/world/ParcelManager.cs @@ -654,7 +654,7 @@ namespace OpenSim.RegionServer.world /// private byte[] convertParcelBitmapToBytes() { - byte[] tempConvertArr = new byte[64 * 64 / 8]; + byte[] tempConvertArr = new byte[512]; byte tempByte = 0; int x, y, i, byteNum = 0; i = 0; @@ -684,7 +684,7 @@ namespace OpenSim.RegionServer.world for(i = 0; i < 512; i++) { tempByte = parcelData.parcelBitmapByteArray[i]; - for(bitNum = 7; bitNum >= 0; bitNum--) + for(bitNum = 0; bitNum < 8; bitNum++) { bool bit = Convert.ToBoolean(Convert.ToByte(tempByte >> bitNum) & (byte)1); tempConvertMap[x, y] = bit;