diff options
Diffstat (limited to 'OpenSim/Services/LLLoginService')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginResponse.cs | 24 | ||||
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 2 |
2 files changed, 20 insertions, 6 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginResponse.cs b/OpenSim/Services/LLLoginService/LLLoginResponse.cs index f641955..da351b9 100644 --- a/OpenSim/Services/LLLoginService/LLLoginResponse.cs +++ b/OpenSim/Services/LLLoginService/LLLoginResponse.cs | |||
@@ -368,7 +368,8 @@ namespace OpenSim.Services.LLLoginService | |||
368 | 368 | ||
369 | private void FillOutHomeData(GridUserInfo pinfo, GridRegion home) | 369 | private void FillOutHomeData(GridUserInfo pinfo, GridRegion home) |
370 | { | 370 | { |
371 | int x = 1000 * (int)Constants.RegionSize, y = 1000 * (int)Constants.RegionSize; | 371 | int x = (int)Util.RegionToWorldLoc(1000); |
372 | int y = (int)Util.RegionToWorldLoc(1000); | ||
372 | if (home != null) | 373 | if (home != null) |
373 | { | 374 | { |
374 | x = home.RegionLocX; | 375 | x = home.RegionLocX; |
@@ -443,10 +444,23 @@ namespace OpenSim.Services.LLLoginService | |||
443 | ErrorReason = "key"; | 444 | ErrorReason = "key"; |
444 | welcomeMessage = "Welcome to OpenSim!"; | 445 | welcomeMessage = "Welcome to OpenSim!"; |
445 | seedCapability = String.Empty; | 446 | seedCapability = String.Empty; |
446 | home = "{'region_handle':[r" + (1000*Constants.RegionSize).ToString() + ",r" + (1000*Constants.RegionSize).ToString() + "], 'position':[r" + | 447 | home = "{'region_handle':[" |
447 | userProfile.homepos.X.ToString() + ",r" + userProfile.homepos.Y.ToString() + ",r" + | 448 | + "r" + Util.RegionToWorldLoc(1000).ToString() |
448 | userProfile.homepos.Z.ToString() + "], 'look_at':[r" + userProfile.homelookat.X.ToString() + ",r" + | 449 | + "," |
449 | userProfile.homelookat.Y.ToString() + ",r" + userProfile.homelookat.Z.ToString() + "]}"; | 450 | + "r" + Util.RegionToWorldLoc(1000).ToString() |
451 | + "], 'position':[" | ||
452 | + "r" + userProfile.homepos.X.ToString() | ||
453 | + "," | ||
454 | + "r" + userProfile.homepos.Y.ToString() | ||
455 | + "," | ||
456 | + "r" + userProfile.homepos.Z.ToString() | ||
457 | + "], 'look_at':[" | ||
458 | + "r" + userProfile.homelookat.X.ToString() | ||
459 | + "," | ||
460 | + "r" + userProfile.homelookat.Y.ToString() | ||
461 | + "," | ||
462 | + "r" + userProfile.homelookat.Z.ToString() | ||
463 | + "]}"; | ||
450 | lookAt = "[r0.99949799999999999756,r0.03166859999999999814,r0]"; | 464 | lookAt = "[r0.99949799999999999756,r0.03166859999999999814,r0]"; |
451 | RegionX = (uint) 255232; | 465 | RegionX = (uint) 255232; |
452 | RegionY = (uint) 254976; | 466 | RegionY = (uint) 254976; |
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index 1c1c9b0..c833131 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -695,7 +695,7 @@ namespace OpenSim.Services.LLLoginService | |||
695 | private GridRegion FindAlternativeRegion(UUID scopeID) | 695 | private GridRegion FindAlternativeRegion(UUID scopeID) |
696 | { | 696 | { |
697 | List<GridRegion> hyperlinks = null; | 697 | List<GridRegion> hyperlinks = null; |
698 | List<GridRegion> regions = m_GridService.GetFallbackRegions(scopeID, 1000 * (int)Constants.RegionSize, 1000 * (int)Constants.RegionSize); | 698 | List<GridRegion> regions = m_GridService.GetFallbackRegions(scopeID, (int)Util.RegionToWorldLoc(1000), (int)Util.RegionToWorldLoc(1000)); |
699 | if (regions != null && regions.Count > 0) | 699 | if (regions != null && regions.Count > 0) |
700 | { | 700 | { |
701 | hyperlinks = m_GridService.GetHyperlinks(scopeID); | 701 | hyperlinks = m_GridService.GetHyperlinks(scopeID); |