ReSit added, channel in dialog messaged added, local teleports have no delay after teleporting, message log crash fixed, hopefully...

This commit is contained in:
phr0z3nt04st
2010-05-24 09:41:16 -05:00
parent 1350365769
commit 2e5dee57b4
8 changed files with 82 additions and 16 deletions

View File

@@ -2478,7 +2478,26 @@ U32 LLVOAvatar::processUpdateMessage(LLMessageSystem *mesgsys,
//llinfos << getRotation() << llendl;
//llinfos << getPosition() << llendl;
// <edit>
if (update_type == OUT_FULL )
{
if(mIsSelf)
{
if(gSavedSettings.getBOOL("ReSit"))
{
gMessageSystem->newMessageFast(_PREHASH_AgentRequestSit);
gMessageSystem->nextBlockFast(_PREHASH_AgentData);
gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID());
gMessageSystem->addUUIDFast(_PREHASH_SessionID, gAgent.getSessionID());
gMessageSystem->nextBlockFast(_PREHASH_TargetObject);
gMessageSystem->addUUIDFast(_PREHASH_TargetID, gReSitTargetID);
gMessageSystem->addVector3Fast(_PREHASH_Offset, gReSitOffset);
gAgent.getRegion()->sendReliableMessage();
}
}
}
// </edit>
return retval;
}