Partial fix for teleport detaching

Thanks for the testing Nai.

Hey LL, if you're reading this, regions we've left were letting us know
that our attachments had left. For some reason, our attachments were dying
before we were removed from the list of agents on the region.

Teleporting out of Hippo Hollow does this reliably.
This commit is contained in:
Lirusaito
2019-03-07 12:51:55 -05:00
parent cab39e31a1
commit b601fa2037

View File

@@ -5246,6 +5246,8 @@ void process_kill_object(LLMessageSystem *mesgsys, void **user_data)
num_objects = mesgsys->getNumberOfBlocksFast(_PREHASH_ObjectData);
bool different_region = mesgsys->getSender().getIPandPort() != gAgent.getRegion()->getHost().getIPandPort();
for (i = 0; i < num_objects; i++)
{
mesgsys->getU32Fast(_PREHASH_ObjectData, _PREHASH_ID, local_id, i);
@@ -5271,6 +5273,11 @@ void process_kill_object(LLMessageSystem *mesgsys, void **user_data)
LLViewerObject *objectp = gObjectList.findObject(id);
if (objectp)
{
if (different_region && gAgentAvatarp == objectp->getAvatar())
{
LL_WARNS() << "Region other than our own killing our attachments!!" << LL_ENDL;
continue;
}
// Display green bubble on kill
if ( gShowObjectUpdates )
{