Revert "Enforce a 0.2 second sleep on llDie() before the command is executed - this should get rid of ghost prims (which are much rarer, but still occuring)"
This reverts commit 85fd2def9c
.
The sleep helps in only one case: static prims rezzed by script.
In other cases (physical prims, bullets) it's harmful.
avinationmerge
parent
0eda6714f3
commit
05520d676c
|
@ -1173,12 +1173,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||||
public virtual void llDie()
|
public virtual void llDie()
|
||||||
{
|
{
|
||||||
m_host.AddScriptLPS(1);
|
m_host.AddScriptLPS(1);
|
||||||
if (!m_host.IsAttachment)
|
if (!m_host.IsAttachment) throw new SelfDeleteException();
|
||||||
{
|
|
||||||
//Enforce a sleep here to avoid ghost prims
|
|
||||||
llSleep(0.2d);
|
|
||||||
throw new SelfDeleteException();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public LSL_Float llGround(LSL_Vector offset)
|
public LSL_Float llGround(LSL_Vector offset)
|
||||||
|
|
Loading…
Reference in New Issue