Sfoglia il codice sorgente

change UI god cancelation on arrival decision code a bit

UbitUmarov 5 giorni fa
parent
commit
6d8bbde5c2
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      OpenSim/Region/Framework/Scenes/GodController.cs

+ 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 = newstate ? 200 : m_viewergodlevel;
-            }       
+                m_lastLevelToViewer = newstate && m_viewergodlevel < 200 ? 200 : m_viewergodlevel;
+            }
             UpdateGodLevels(newstate);
         }