diff options
author | Andrew Meadows <andrew@lindenlab.com> | 2012-12-13 15:43:10 -0800 |
---|---|---|
committer | Andrew Meadows <andrew@lindenlab.com> | 2012-12-13 15:43:10 -0800 |
commit | 834a956a70bb49f1a242681bd611df4bbb7e4cc8 (patch) | |
tree | caf50fa7cb6ce96c1969694cfa2cdd65a171c496 /indra/newview/llviewerobjectlist.cpp | |
parent | 0270ce079c2090cd25244516648ac1691db00a0d (diff) |
We now handle local_id=0 in KillObject as a prefix to deleted local_id's.
This is the real viewer-side work that was the motivation for MAINT-2123.
Reviewed with Bao.
Diffstat (limited to 'indra/newview/llviewerobjectlist.cpp')
-rw-r--r-- | indra/newview/llviewerobjectlist.cpp | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/indra/newview/llviewerobjectlist.cpp b/indra/newview/llviewerobjectlist.cpp index f3552e2c2b..5b2214f3b3 100644 --- a/indra/newview/llviewerobjectlist.cpp +++ b/indra/newview/llviewerobjectlist.cpp @@ -107,7 +107,6 @@ LLViewerObjectList::LLViewerObjectList() mNumNewObjects = 0; mWasPaused = FALSE; mNumDeadObjectUpdates = 0; - mNumUnknownKills = 0; mNumUnknownUpdates = 0; } @@ -1342,16 +1341,7 @@ BOOL LLViewerObjectList::killObject(LLViewerObject *objectp) if (objectp) { - if (objectp->isDead()) - { - // This object is already dead. Don't need to do more. - return TRUE; - } - else - { - objectp->markDead(); - } - + objectp->markDead(); // does the right thing if object already dead return TRUE; } |