diff options
author | UbitUmarov | 2018-08-07 20:38:58 +0100 |
---|---|---|
committer | UbitUmarov | 2018-08-07 20:38:58 +0100 |
commit | 88d638a0cfcfd18d3249cdf16ea49e3bf1d429ad (patch) | |
tree | 4cc3eb5a95b10fdd4d58d2ae010592af12bd1d01 /OpenSim/Region/CoreModules | |
parent | and some more guard try{}catch{} on ub mesh processing (diff) | |
download | opensim-SC-88d638a0cfcfd18d3249cdf16ea49e3bf1d429ad.zip opensim-SC-88d638a0cfcfd18d3249cdf16ea49e3bf1d429ad.tar.gz opensim-SC-88d638a0cfcfd18d3249cdf16ea49e3bf1d429ad.tar.bz2 opensim-SC-88d638a0cfcfd18d3249cdf16ea49e3bf1d429ad.tar.xz |
mantis 8349: fix landmasks
Diffstat (limited to 'OpenSim/Region/CoreModules')
-rw-r--r-- | OpenSim/Region/CoreModules/World/Land/LandObject.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenSim/Region/CoreModules/World/Land/LandObject.cs b/OpenSim/Region/CoreModules/World/Land/LandObject.cs index 229587b..2c9ff00 100644 --- a/OpenSim/Region/CoreModules/World/Land/LandObject.cs +++ b/OpenSim/Region/CoreModules/World/Land/LandObject.cs | |||
@@ -1460,7 +1460,7 @@ namespace OpenSim.Region.CoreModules.World.Land | |||
1460 | for (int i = 0; i < bitmapLen; i++) | 1460 | for (int i = 0; i < bitmapLen; i++) |
1461 | { | 1461 | { |
1462 | tempByte = LandData.Bitmap[i]; | 1462 | tempByte = LandData.Bitmap[i]; |
1463 | for (int bitmask = 0x80; bitmask > 0; bitmask = bitmask >> 1) | 1463 | for (int bitmask = 0x01; bitmask < 0x100; bitmask = bitmask << 1) |
1464 | { | 1464 | { |
1465 | bool bit = (tempByte & bitmask) == bitmask; | 1465 | bool bit = (tempByte & bitmask) == bitmask; |
1466 | try | 1466 | try |