mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
If a Grid God teleports then include the Godlike teleport flag. This can affect the starting position in the destination region.
This commit is contained in:
committed by
Justin Clark-Casey (justincc)
parent
37d770f814
commit
9622e8ac72
@@ -161,6 +161,12 @@ namespace OpenSim.Region.CoreModules.Framework.EntityTransfer
|
||||
|
||||
public void Teleport(ScenePresence sp, ulong regionHandle, Vector3 position, Vector3 lookAt, uint teleportFlags)
|
||||
{
|
||||
if (sp.Scene.Permissions.IsGridGod(sp.UUID))
|
||||
{
|
||||
// This user will be a God in the destination scene, too
|
||||
teleportFlags |= (uint)TeleportFlags.Godlike;
|
||||
}
|
||||
|
||||
if (!sp.Scene.Permissions.CanTeleport(sp.UUID))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user