Anti suicide kind of thing

This commit is contained in:
Siana Gearz
2011-04-16 02:07:24 +02:00
parent 0c2765511e
commit ef43a87ac0

View File

@@ -909,6 +909,13 @@ void LLViewerObjectList::removeDrawable(LLDrawable* drawablep)
BOOL LLViewerObjectList::killObject(LLViewerObject *objectp)
{
// Don't commit suicide just because someone thinks you are on a ledge. -SG
if (objectp == gAgent.getAvatarObject())
{
objectp->setRegion(gAgent.getRegion());
return FALSE;
}
// When we're killing objects, all we do is mark them as dead.
// We clean up the dead objects later.