diff options
author | mingchen | 2007-06-06 21:26:07 +0000 |
---|---|---|
committer | mingchen | 2007-06-06 21:26:07 +0000 |
commit | a4c01a3258eabc0bac52541d8a61fd1203ee3cf6 (patch) | |
tree | 876e57430ee611b5fbe2edd8fcea7bd0460509ad | |
parent | *Added new commands ('backup','show parcels','reset parcels') (diff) | |
download | opensim-SC-a4c01a3258eabc0bac52541d8a61fd1203ee3cf6.zip opensim-SC-a4c01a3258eabc0bac52541d8a61fd1203ee3cf6.tar.gz opensim-SC-a4c01a3258eabc0bac52541d8a61fd1203ee3cf6.tar.bz2 opensim-SC-a4c01a3258eabc0bac52541d8a61fd1203ee3cf6.tar.xz |
*Fixed Parcel backup in databased (finished fixing core parcel functions)
-rw-r--r-- | OpenSim/OpenSim.RegionServer/world/ParcelManager.cs | 4 |
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; |