diff options
Intermediate commit. Sill errors.
Merge branch 'master' into careminster
Conflicts:
OpenSim/Data/SQLite/SQLiteUserProfilesData.cs
OpenSim/Framework/RegionInfo.cs
OpenSim/Region/ClientStack/Linden/Caps/EventQueue/EventQueueHelper.cs
OpenSim/Region/Framework/Scenes/SceneObjectGroup.cs
OpenSim/Services/UserProfilesService/UserProfilesService.cs
Diffstat (limited to 'OpenSim/Services/LLLoginService')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginResponse.cs | 10 | ||||
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 3 |
2 files changed, 12 insertions, 1 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs index 057c492..f641955 100644 --- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs +++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs | |||
@@ -261,11 +261,11 @@ namespace OpenSim.Services.LLLoginService | |||
261 | Currency = currency; | 261 | Currency = currency; |
262 | ClassifiedFee = classifiedFee; | 262 | ClassifiedFee = classifiedFee; |
263 | 263 | ||
264 | |||
265 | FillOutHomeData(pinfo, home); | 264 | FillOutHomeData(pinfo, home); |
266 | LookAt = String.Format("[r{0},r{1},r{2}]", lookAt.X, lookAt.Y, lookAt.Z); | 265 | LookAt = String.Format("[r{0},r{1},r{2}]", lookAt.X, lookAt.Y, lookAt.Z); |
267 | 266 | ||
268 | FillOutRegionData(destination); | 267 | FillOutRegionData(destination); |
268 | // m_log.DebugFormat("[LOGIN RESPONSE] LLLoginResponse create. sizeX=<{0},{1}>", RegionSizeX, RegionSizeY); | ||
269 | 269 | ||
270 | FillOutSeedCap(aCircuit, destination, clientIP); | 270 | FillOutSeedCap(aCircuit, destination, clientIP); |
271 | 271 | ||
@@ -392,6 +392,8 @@ namespace OpenSim.Services.LLLoginService | |||
392 | SimPort = (uint)endPoint.Port; | 392 | SimPort = (uint)endPoint.Port; |
393 | RegionX = (uint)destination.RegionLocX; | 393 | RegionX = (uint)destination.RegionLocX; |
394 | RegionY = (uint)destination.RegionLocY; | 394 | RegionY = (uint)destination.RegionLocY; |
395 | RegionSizeX = destination.RegionSizeX; | ||
396 | RegionSizeY = destination.RegionSizeY; | ||
395 | } | 397 | } |
396 | 398 | ||
397 | private void FillOutSeedCap(AgentCircuitData aCircuit, GridRegion destination, IPEndPoint ipepClient) | 399 | private void FillOutSeedCap(AgentCircuitData aCircuit, GridRegion destination, IPEndPoint ipepClient) |
@@ -539,6 +541,9 @@ namespace OpenSim.Services.LLLoginService | |||
539 | responseData["message"] = welcomeMessage; | 541 | responseData["message"] = welcomeMessage; |
540 | responseData["region_x"] = (Int32)(RegionX); | 542 | responseData["region_x"] = (Int32)(RegionX); |
541 | responseData["region_y"] = (Int32)(RegionY); | 543 | responseData["region_y"] = (Int32)(RegionY); |
544 | responseData["region_size_x"] = (Int32)RegionSizeX; | ||
545 | responseData["region_size_y"] = (Int32)RegionSizeY; | ||
546 | // m_log.DebugFormat("[LOGIN RESPONSE] returning sizeX=<{0},{1}>", RegionSizeX, RegionSizeY); | ||
542 | 547 | ||
543 | if (searchURL != String.Empty) | 548 | if (searchURL != String.Empty) |
544 | responseData["search"] = searchURL; | 549 | responseData["search"] = searchURL; |
@@ -935,6 +940,9 @@ namespace OpenSim.Services.LLLoginService | |||
935 | set { regionY = value; } | 940 | set { regionY = value; } |
936 | } | 941 | } |
937 | 942 | ||
943 | public int RegionSizeX { get; private set; } | ||
944 | public int RegionSizeY { get; private set; } | ||
945 | |||
938 | public string SunTexture | 946 | public string SunTexture |
939 | { | 947 | { |
940 | get { return sunTexture; } | 948 | get { return sunTexture; } |
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index faf7f71..ed62c43 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -50,6 +50,8 @@ namespace OpenSim.Services.LLLoginService | |||
50 | public class LLLoginService : ILoginService | 50 | public class LLLoginService : ILoginService |
51 | { | 51 | { |
52 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); | 52 | private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
53 | private static readonly string LogHeader = "[LLOGIN SERVICE]"; | ||
54 | |||
53 | private static bool Initialized = false; | 55 | private static bool Initialized = false; |
54 | 56 | ||
55 | protected IUserAccountService m_UserAccountService; | 57 | protected IUserAccountService m_UserAccountService; |
@@ -397,6 +399,7 @@ namespace OpenSim.Services.LLLoginService | |||
397 | if (guinfo == null) | 399 | if (guinfo == null) |
398 | { | 400 | { |
399 | // something went wrong, make something up, so that we don't have to test this anywhere else | 401 | // something went wrong, make something up, so that we don't have to test this anywhere else |
402 | m_log.DebugFormat("{0} Failed to fetch GridUserInfo. Creating empty GridUserInfo as home", LogHeader); | ||
400 | guinfo = new GridUserInfo(); | 403 | guinfo = new GridUserInfo(); |
401 | guinfo.LastPosition = guinfo.HomePosition = new Vector3(128, 128, 30); | 404 | guinfo.LastPosition = guinfo.HomePosition = new Vector3(128, 128, 30); |
402 | } | 405 | } |