change bitmasks work
parent
8ab5a87520
commit
0731220a9d
|
@ -2033,7 +2033,6 @@ namespace OpenSim.Region.CoreModules.World.Land
|
|||
{
|
||||
UUID parcel = UUID.Zero;
|
||||
UUID.TryParse(id, out parcel);
|
||||
|
||||
// assume we've got the parcelID we just computed in RemoteParcelRequest
|
||||
ExtendedLandData extLandData = new ExtendedLandData();
|
||||
if(!Util.ParseFakeParcelID(parcel, out extLandData.RegionHandle,
|
||||
|
@ -2045,13 +2044,7 @@ namespace OpenSim.Region.CoreModules.World.Land
|
|||
// for this region or for somewhere else?
|
||||
if (extLandData.RegionHandle == m_scene.RegionInfo.RegionHandle)
|
||||
{
|
||||
ILandObject extLandObject = this.GetLandObject(extLandData.X, extLandData.Y);
|
||||
if(extLandObject == null)
|
||||
{
|
||||
m_log.DebugFormat("[LAND MANAGEMENT MODULE]: ParcelInfoRequest: a FakeParcelID points to outside the region");
|
||||
return null;
|
||||
}
|
||||
extLandData.LandData = extLandObject.LandData;
|
||||
extLandData.LandData = this.GetLandObject(extLandData.X, extLandData.Y).LandData;
|
||||
extLandData.RegionAccess = m_scene.RegionInfo.AccessLevel;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -1460,9 +1460,9 @@ namespace OpenSim.Region.CoreModules.World.Land
|
|||
for (int i = 0; i < bitmapLen; i++)
|
||||
{
|
||||
tempByte = LandData.Bitmap[i];
|
||||
for (int bitNum = 0; bitNum < 8; bitNum++)
|
||||
for (int bitmask = 0x80; bitmask > 0; bitmask = bitmask >> 1)
|
||||
{
|
||||
bool bit = Convert.ToBoolean(Convert.ToByte(tempByte >> bitNum) & (byte) 1);
|
||||
bool bit = (tempByte & bitmask) == bitmask;
|
||||
try
|
||||
{
|
||||
tempConvertMap[x, y] = bit;
|
||||
|
|
Loading…
Reference in New Issue