From 1a6cddf80761deb65773ad344e822ef74a824418 Mon Sep 17 00:00:00 2001 From: AliciaRaven Date: Tue, 22 Nov 2016 21:23:01 +0000 Subject: Minor fix to region default landing point sanity check --- OpenSim/Framework/RegionInfo.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'OpenSim') 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 bool ValuesCapped = false; // Minimum Positions - if (DefaultLandingPoint.X < 0f) + if (DefaultLandingPoint.X < buffer_zone) { DefaultLandingPoint.X = buffer_zone; ValuesCapped = true; } - if (DefaultLandingPoint.Y < 0f) + if (DefaultLandingPoint.Y < buffer_zone) { DefaultLandingPoint.Y = buffer_zone; ValuesCapped = true; -- cgit v1.1