From 264eeffd0294d27fd1329a27c84c8b61e5fb0993 Mon Sep 17 00:00:00 2001 From: Melanie Thielker Date: Sat, 18 Oct 2008 07:27:39 +0000 Subject: Fix thingd so that autoreturn also works when the user is not in the sim. Also add experimental distance ordering for prims --- OpenSim/Region/Environment/Scenes/Scene.cs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'OpenSim/Region/Environment/Scenes/Scene.cs') diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 139281d..50d0a72 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs @@ -3385,6 +3385,12 @@ namespace OpenSim.Region.Environment.Scenes // User needs to be logged into this sim if (m_scenePresences.ContainsKey(agentID)) { + if (godLike == false) + { + m_scenePresences[agentID].GrantGodlikePowers(agentID, sessionID, token, godLike); + return; + } + // First check that this is the sim owner if (ExternalChecks.ExternalChecksCanBeGodLike(agentID)) { -- cgit v1.1