Revert "Fixed: Windlight functions caused an error if called when the script's owner isn't in the scene"
This reverts commit 39e5785c0f.
Did not mean to apply this yet.
			
			
				master-beforevarregion
			
			
		
							parent
							
								
									18e0d2f343
								
							
						
					
					
						commit
						14c72d4a5b
					
				|  | @ -446,9 +446,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
|                 LSShoutError("LightShare functions are not enabled."); | ||||
|                 return 0; | ||||
|             } | ||||
| 
 | ||||
|             ScenePresence sp = World.GetScenePresence(m_host.OwnerID); | ||||
|             if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && (sp == null || sp.GodLevel < 200)) | ||||
|             if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && World.GetScenePresence(m_host.OwnerID).GodLevel < 200) | ||||
|             { | ||||
|                 LSShoutError("lsSetWindlightScene can only be used by estate managers or owners."); | ||||
|                 return 0; | ||||
|  | @ -476,9 +474,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
|                 LSShoutError("LightShare functions are not enabled."); | ||||
|                 return; | ||||
|             } | ||||
|              | ||||
|             ScenePresence sp = World.GetScenePresence(m_host.OwnerID); | ||||
|             if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && (sp == null || sp.GodLevel < 200)) | ||||
|             if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && World.GetScenePresence(m_host.OwnerID).GodLevel < 200) | ||||
|             { | ||||
|                 LSShoutError("lsSetWindlightScene can only be used by estate managers or owners."); | ||||
|                 return; | ||||
|  | @ -501,9 +497,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api | |||
|                 LSShoutError("LightShare functions are not enabled."); | ||||
|                 return 0; | ||||
|             } | ||||
|              | ||||
|             ScenePresence sp = World.GetScenePresence(m_host.OwnerID); | ||||
|             if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && (sp == null || sp.GodLevel < 200)) | ||||
|             if (!World.RegionInfo.EstateSettings.IsEstateManagerOrOwner(m_host.OwnerID) && World.GetScenePresence(m_host.OwnerID).GodLevel < 200) | ||||
|             { | ||||
|                 LSShoutError("lsSetWindlightSceneTargeted can only be used by estate managers or owners."); | ||||
|                 return 0; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Justin Clark-Casey (justincc)
						Justin Clark-Casey (justincc)