From 71f94d84211369489147307155f41a00cd2913bd Mon Sep 17 00:00:00 2001 From: Sean Dague Date: Tue, 11 Sep 2007 15:13:24 +0000 Subject: [PATCH] Fix for setting region through property. This should allow mysql to work again in grid mode for user storage. --- OpenSim/Framework/Data/UserProfileData.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenSim/Framework/Data/UserProfileData.cs b/OpenSim/Framework/Data/UserProfileData.cs index 4e8ec80053..1d0ac84a4d 100644 --- a/OpenSim/Framework/Data/UserProfileData.cs +++ b/OpenSim/Framework/Data/UserProfileData.cs @@ -66,8 +66,8 @@ namespace OpenSim.Framework.Data { get { return Helpers.UIntsToLong((homeRegionX * 256), (homeRegionY * 256)); } set { - System.Console.WriteLine("Don't know how to set homeRegion"); - Helpers.UIntsToLong((homeRegionX * 256), (homeRegionY * 256)); + homeRegionX = (uint)(value >> 40); + homeRegionY = (((uint)(value)) >> 8); } } public uint homeRegionX;