瀏覽代碼

at login do try proper region name match before sending just somewhere that looks similar

UbitUmarov 5 年之前
父節點
當前提交
186e9e2838
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      OpenSim/Services/LLLoginService/LLLoginService.cs

+ 8 - 0
OpenSim/Services/LLLoginService/LLLoginService.cs

@@ -757,6 +757,14 @@ namespace OpenSim.Services.LLLoginService
                                     }
                                 }
                             }
+
+                            //find a exact match
+                            foreach(GridRegion r in regions)
+                            {
+                                if(string.Equals(regionName, r.RegionName, StringComparison.CurrentCultureIgnoreCase))
+                                    return r;
+                            }
+                            // else, whatever
                             return regions[0];
                         }
                         else