mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 02:36:00 +08:00
replace godlevel compares by the new faster bool isViewerUIGod
This commit is contained in:
@@ -721,7 +721,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
ScenePresence sp = World.GetScenePresence(m_host.OwnerID);
|
||||
|
||||
if (sp == null || sp.GodController.GodLevel < 200)
|
||||
if (sp == null || !sp.isViewerUIGod)
|
||||
{
|
||||
LSShoutError("lsSetWindlightScene can only be used by estate managers or owners.");
|
||||
return 0;
|
||||
@@ -768,7 +768,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
ScenePresence sp = World.GetScenePresence(m_host.OwnerID);
|
||||
|
||||
if (sp == null || sp.GodController.GodLevel < 200)
|
||||
if (sp == null || !sp.isViewerUIGod)
|
||||
{
|
||||
LSShoutError("lsSetWindlightScene can only be used by estate managers or owners.");
|
||||
return;
|
||||
@@ -799,7 +799,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
ScenePresence sp = World.GetScenePresence(m_host.OwnerID);
|
||||
|
||||
if (sp == null || sp.GodController.GodLevel < 200)
|
||||
if (sp == null || !sp.isViewerUIGod)
|
||||
{
|
||||
LSShoutError("lsSetWindlightSceneTargeted can only be used by estate managers or owners.");
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user