2 次代码提交 1ff28960f1 ... 6d8bbde5c2

作者 SHA1 备注 提交日期
  UbitUmarov 6d8bbde5c2 change UI god cancelation on arrival decision code a bit 5 天之前
  UbitUmarov d5866f4e02 do tell viewers about UI god cancelation on arrival 5 天之前

+ 1 - 3
OpenSim/Region/CoreModules/Avatar/UserProfiles/UserProfileModule.cs

@@ -97,10 +97,8 @@ namespace OpenSim.Region.CoreModules.Avatar.UserProfiles
                         {
                             ScenePresence p = req.presence;
 
-                            bool ok = true;
                             bool foreign = GetUserProfileServerURI(req.agent, out string serverURI);
-                            if(serverURI.Length == 0)
-                                ok = false;
+                            bool ok  = serverURI.Length > 0;
 
                             Byte[] membershipType = new Byte[1];
                             string born = string.Empty;

+ 2 - 2
OpenSim/Region/Framework/Scenes/GodController.cs

@@ -242,8 +242,8 @@ namespace OpenSim.Region.Framework.Scenes
                 OSDMap s = (OSDMap)state;
                 if (s.TryGetValue("ViewerUiIsGod", out OSD tmp))
                     newstate = tmp.AsBoolean();
-                m_lastLevelToViewer = m_viewergodlevel; // we are not changing viewer level by default
-            }       
+                m_lastLevelToViewer = newstate && m_viewergodlevel < 200 ? 200 : m_viewergodlevel;
+            }
             UpdateGodLevels(newstate);
         }
 

+ 0 - 1
OpenSim/Region/Framework/Scenes/SceneObjectGroup.Inventory.cs

@@ -26,7 +26,6 @@
  */
 
 using System;
-using System.IO;
 using System.Reflection;
 using OpenMetaverse;
 using log4net;