aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/RegionInfo.cs
diff options
context:
space:
mode:
authorAliciaRaven2016-11-22 21:23:01 +0000
committerAliciaRaven2016-11-22 21:23:01 +0000
commit1a6cddf80761deb65773ad344e822ef74a824418 (patch)
treedc1ca46dbab6a3acf1e5a29f104b771c156ff8e1 /OpenSim/Framework/RegionInfo.cs
parentFix typo in a comment (diff)
downloadopensim-SC-1a6cddf80761deb65773ad344e822ef74a824418.zip
opensim-SC-1a6cddf80761deb65773ad344e822ef74a824418.tar.gz
opensim-SC-1a6cddf80761deb65773ad344e822ef74a824418.tar.bz2
opensim-SC-1a6cddf80761deb65773ad344e822ef74a824418.tar.xz
Minor fix to region default landing point sanity check
Diffstat (limited to '')
-rw-r--r--OpenSim/Framework/RegionInfo.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Framework/RegionInfo.cs b/OpenSim/Framework/RegionInfo.cs
index b6e9d9f..ca17793 100644
--- a/OpenSim/Framework/RegionInfo.cs
+++ b/OpenSim/Framework/RegionInfo.cs
@@ -789,13 +789,13 @@ namespace OpenSim.Framework
789 bool ValuesCapped = false; 789 bool ValuesCapped = false;
790 790
791 // Minimum Positions 791 // Minimum Positions
792 if (DefaultLandingPoint.X < 0f) 792 if (DefaultLandingPoint.X < buffer_zone)
793 { 793 {
794 DefaultLandingPoint.X = buffer_zone; 794 DefaultLandingPoint.X = buffer_zone;
795 ValuesCapped = true; 795 ValuesCapped = true;
796 } 796 }
797 797
798 if (DefaultLandingPoint.Y < 0f) 798 if (DefaultLandingPoint.Y < buffer_zone)
799 { 799 {
800 DefaultLandingPoint.Y = buffer_zone; 800 DefaultLandingPoint.Y = buffer_zone;
801 ValuesCapped = true; 801 ValuesCapped = true;