2 کامیت‌ها 1ff28960f1 ... 6d8bbde5c2

نویسنده SHA1 پیام تاریخ
  UbitUmarov 6d8bbde5c2 change UI god cancelation on arrival decision code a bit 2 روز پیش
  UbitUmarov d5866f4e02 do tell viewers about UI god cancelation on arrival 2 روز پیش

+ 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;