diff options
author | UbitUmarov | 2019-03-11 23:15:30 +0000 |
---|---|---|
committer | UbitUmarov | 2019-03-11 23:15:30 +0000 |
commit | 186e9e2838018affd82d62444e7fdfb08400960f (patch) | |
tree | 3787fc2a8471a82ce92e0903c4cfbe5f692429c1 /OpenSim/Services | |
parent | lludp: direct encode terrain patchs packets (diff) | |
download | opensim-SC-186e9e2838018affd82d62444e7fdfb08400960f.zip opensim-SC-186e9e2838018affd82d62444e7fdfb08400960f.tar.gz opensim-SC-186e9e2838018affd82d62444e7fdfb08400960f.tar.bz2 opensim-SC-186e9e2838018affd82d62444e7fdfb08400960f.tar.xz |
at login do try proper region name match before sending just somewhere that looks similar
Diffstat (limited to 'OpenSim/Services')
-rw-r--r-- | OpenSim/Services/LLLoginService/LLLoginService.cs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/OpenSim/Services/LLLoginService/LLLoginService.cs b/OpenSim/Services/LLLoginService/LLLoginService.cs index 0438673..3a6f41b 100644 --- a/OpenSim/Services/LLLoginService/LLLoginService.cs +++ b/OpenSim/Services/LLLoginService/LLLoginService.cs | |||
@@ -757,6 +757,14 @@ namespace OpenSim.Services.LLLoginService | |||
757 | } | 757 | } |
758 | } | 758 | } |
759 | } | 759 | } |
760 | |||
761 | //find a exact match | ||
762 | foreach(GridRegion r in regions) | ||
763 | { | ||
764 | if(string.Equals(regionName, r.RegionName, StringComparison.CurrentCultureIgnoreCase)) | ||
765 | return r; | ||
766 | } | ||
767 | // else, whatever | ||
760 | return regions[0]; | 768 | return regions[0]; |
761 | } | 769 | } |
762 | else | 770 | else |