aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
diff options
context:
space:
mode:
authorMelanie2011-01-08 16:44:28 +0100
committerMelanie2011-01-08 16:44:28 +0100
commitc271bbcc8af1549666f6a5299a4b9ab9cf1c86d9 (patch)
tree65793a755315f256a6242d6126fe851a6a2c2951 /OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
parentFix a couple of security issues (diff)
downloadopensim-SC-c271bbcc8af1549666f6a5299a4b9ab9cf1c86d9.zip
opensim-SC-c271bbcc8af1549666f6a5299a4b9ab9cf1c86d9.tar.gz
opensim-SC-c271bbcc8af1549666f6a5299a4b9ab9cf1c86d9.tar.bz2
opensim-SC-c271bbcc8af1549666f6a5299a4b9ab9cf1c86d9.tar.xz
Preserve the script running flag when copying an object.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/XEngine/XEngine.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/XEngine/XEngine.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
index 35cc65b..6bdd4c8 100644
--- a/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
+++ b/OpenSim/Region/ScriptEngine/XEngine/XEngine.cs
@@ -1695,5 +1695,17 @@ namespace OpenSim.Region.ScriptEngine.XEngine
1695 1695
1696 instance.Resume(); 1696 instance.Resume();
1697 } 1697 }
1698
1699 public bool HasScript(UUID itemID, out bool running)
1700 {
1701 running = true;
1702
1703 IScriptInstance instance = GetInstance(itemID);
1704 if (instance == null)
1705 return false;
1706
1707 running = instance.Running;
1708 return true;
1709 }
1698 } 1710 }
1699} 1711}