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)

avinationmerge
Tom 2010-08-05 08:15:05 -07:00
parent 8689cdd4dc
commit 85fd2def9c
1 changed files with 6 additions and 1 deletions

View File

@ -1173,7 +1173,12 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
public virtual void llDie()
{
m_host.AddScriptLPS(1);
if (!m_host.IsAttachment) throw new SelfDeleteException();
if (!m_host.IsAttachment)
{
//Enforce a sleep here to avoid ghost prims
llSleep(0.2d);
throw new SelfDeleteException();
}
}
public LSL_Float llGround(LSL_Vector offset)