From 181142c5ce533e8829094e7d8633084e2b49f2c7 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Tue, 29 Jul 2014 02:37:36 +0200 Subject: Change some ORs to assignments as they should be --- OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region') diff --git a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs index 173dcd5..9058834 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandManagementModule.cs @@ -1044,29 +1044,29 @@ namespace OpenSim.Region.CoreModules.World.Land if (currentParcelBlock.LandData.OwnerID == remote_client.AgentId) { //Owner Flag - tempByte |= (byte)LandChannel.LAND_TYPE_OWNED_BY_REQUESTER; + tempByte = (byte)LandChannel.LAND_TYPE_OWNED_BY_REQUESTER; } else if (currentParcelBlock.LandData.IsGroupOwned && remote_client.IsGroupMember(currentParcelBlock.LandData.GroupID)) { - tempByte |= (byte)LandChannel.LAND_TYPE_OWNED_BY_GROUP; + tempByte = (byte)LandChannel.LAND_TYPE_OWNED_BY_GROUP; } else if (currentParcelBlock.LandData.SalePrice > 0 && (currentParcelBlock.LandData.AuthBuyerID == UUID.Zero || currentParcelBlock.LandData.AuthBuyerID == remote_client.AgentId)) { //Sale type - tempByte |= (byte)LandChannel.LAND_TYPE_IS_FOR_SALE; + tempByte = (byte)LandChannel.LAND_TYPE_IS_FOR_SALE; } else if(currentParcelBlock.LandData.OwnerID == UUID.Zero) { //Public type - tempByte |= (byte)LandChannel.LAND_TYPE_PUBLIC; // this does nothing, its zero + tempByte = (byte)LandChannel.LAND_TYPE_PUBLIC; // this does nothing, its zero } // LAND_TYPE_IS_BEING_AUCTIONED still unsuported else { //Other Flag - tempByte |= (byte)LandChannel.LAND_TYPE_OWNED_BY_OTHER; + tempByte = (byte)LandChannel.LAND_TYPE_OWNED_BY_OTHER; } // now flags -- cgit v1.1