ReSit added, channel in dialog messaged added, local teleports have no delay after teleporting, message log crash fixed, hopefully...
This commit is contained in:
@@ -217,7 +217,10 @@ const F64 CHAT_AGE_FAST_RATE = 3.0;
|
|||||||
|
|
||||||
// The agent instance.
|
// The agent instance.
|
||||||
LLAgent gAgent;
|
LLAgent gAgent;
|
||||||
|
// <edit>
|
||||||
|
LLUUID gReSitTargetID;
|
||||||
|
LLVector3 gReSitOffset;
|
||||||
|
// </edit>
|
||||||
//
|
//
|
||||||
// Statics
|
// Statics
|
||||||
//
|
//
|
||||||
@@ -3033,7 +3036,9 @@ void LLAgent::endAnimationUpdateUI()
|
|||||||
// freeze avatar
|
// freeze avatar
|
||||||
if (mAvatarObject.notNull())
|
if (mAvatarObject.notNull())
|
||||||
{
|
{
|
||||||
mPauseRequest = mAvatarObject->requestPause();
|
// <edit>
|
||||||
|
//mPauseRequest = mAvatarObject->requestPause();
|
||||||
|
// </edit>
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4244,7 +4249,9 @@ void LLAgent::changeCameraToCustomizeAvatar(BOOL avatar_animate, BOOL camera_ani
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
setControlFlags(AGENT_CONTROL_STAND_UP); // force stand up
|
// <edit>
|
||||||
|
//setControlFlags(AGENT_CONTROL_STAND_UP); // force stand up
|
||||||
|
// </edit>
|
||||||
gViewerWindow->getWindow()->resetBusyCount();
|
gViewerWindow->getWindow()->resetBusyCount();
|
||||||
|
|
||||||
if (gFaceEditToolset)
|
if (gFaceEditToolset)
|
||||||
@@ -4259,6 +4266,9 @@ void LLAgent::changeCameraToCustomizeAvatar(BOOL avatar_animate, BOOL camera_ani
|
|||||||
|
|
||||||
if (camera_animate)
|
if (camera_animate)
|
||||||
{
|
{
|
||||||
|
// <edit>
|
||||||
|
if(gSavedSettings.getBOOL("AppearanceCameraMovement"))
|
||||||
|
// </edit>
|
||||||
startCameraAnimation();
|
startCameraAnimation();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4321,6 +4331,14 @@ void LLAgent::changeCameraToCustomizeAvatar(BOOL avatar_animate, BOOL camera_ani
|
|||||||
endAnimationUpdateUI();
|
endAnimationUpdateUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// <edit>
|
||||||
|
if(!gSavedSettings.getBOOL("AppearanceCameraMovement"))
|
||||||
|
{
|
||||||
|
//hmm
|
||||||
|
mCameraAnimating = FALSE;
|
||||||
|
endAnimationUpdateUI();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -6094,7 +6112,10 @@ bool LLAgent::teleportCore(bool is_local)
|
|||||||
if(TELEPORT_NONE != mTeleportState)
|
if(TELEPORT_NONE != mTeleportState)
|
||||||
{
|
{
|
||||||
llwarns << "Attempt to teleport when already teleporting." << llendl;
|
llwarns << "Attempt to teleport when already teleporting." << llendl;
|
||||||
return false;
|
// <edit>
|
||||||
|
//return false;
|
||||||
|
teleportCancel();
|
||||||
|
// </edit>
|
||||||
}
|
}
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
@@ -6132,6 +6153,9 @@ bool LLAgent::teleportCore(bool is_local)
|
|||||||
|
|
||||||
// Close all pie menus, deselect land, etc.
|
// Close all pie menus, deselect land, etc.
|
||||||
// Don't change the camera until we know teleport succeeded. JC
|
// Don't change the camera until we know teleport succeeded. JC
|
||||||
|
// <edit>
|
||||||
|
if(gAgent.getFocusOnAvatar())
|
||||||
|
// </edit>
|
||||||
resetView(FALSE);
|
resetView(FALSE);
|
||||||
|
|
||||||
// local logic
|
// local logic
|
||||||
@@ -6187,11 +6211,14 @@ void LLAgent::teleportRequest(
|
|||||||
msg->nextBlockFast(_PREHASH_Info);
|
msg->nextBlockFast(_PREHASH_Info);
|
||||||
msg->addU64("RegionHandle", region_handle);
|
msg->addU64("RegionHandle", region_handle);
|
||||||
msg->addVector3("Position", pos_local);
|
msg->addVector3("Position", pos_local);
|
||||||
LLVector3 look_at(0,1,0);
|
// <edit>
|
||||||
if (look_at_from_camera)
|
//LLVector3 look_at(0,1,0);
|
||||||
|
LLVector3 look_at = LLViewerCamera::getInstance()->getAtAxis();
|
||||||
|
/*if (look_at_from_camera)
|
||||||
{
|
{
|
||||||
look_at = LLViewerCamera::getInstance()->getAtAxis();
|
look_at = LLViewerCamera::getInstance()->getAtAxis();
|
||||||
}
|
}*/
|
||||||
|
// </edit>
|
||||||
msg->addVector3("LookAt", look_at);
|
msg->addVector3("LookAt", look_at);
|
||||||
sendReliableMessage();
|
sendReliableMessage();
|
||||||
}
|
}
|
||||||
@@ -6298,7 +6325,11 @@ void LLAgent::teleportViaLocation(const LLVector3d& pos_global)
|
|||||||
msg->addU64Fast(_PREHASH_RegionHandle, region_handle);
|
msg->addU64Fast(_PREHASH_RegionHandle, region_handle);
|
||||||
msg->addVector3Fast(_PREHASH_Position, pos);
|
msg->addVector3Fast(_PREHASH_Position, pos);
|
||||||
pos.mV[VX] += 1;
|
pos.mV[VX] += 1;
|
||||||
msg->addVector3Fast(_PREHASH_LookAt, pos);
|
// <edit>
|
||||||
|
LLVector3 lookat = LLViewerCamera::getInstance()->getAtAxis();
|
||||||
|
//msg->addVector3Fast(_PREHASH_LookAt, pos);
|
||||||
|
msg->addVector3Fast(_PREHASH_LookAt, lookat);
|
||||||
|
// </edit>
|
||||||
sendReliableMessage();
|
sendReliableMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1016,5 +1016,8 @@ private:
|
|||||||
};
|
};
|
||||||
|
|
||||||
extern LLAgent gAgent;
|
extern LLAgent gAgent;
|
||||||
|
// <edit>
|
||||||
|
extern LLUUID gReSitTargetID;
|
||||||
|
extern LLVector3 gReSitOffset;
|
||||||
|
// </edit>
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -120,6 +120,8 @@ LLFloaterMessageLogItem::LLFloaterMessageLogItem(LLMessageLogEntry entry)
|
|||||||
for(S32 i = 0; i < mDataSize; i++)
|
for(S32 i = 0; i < mDataSize; i++)
|
||||||
mSummary.append(llformat("%02X ", mData[i]));
|
mSummary.append(llformat("%02X ", mData[i]));
|
||||||
}
|
}
|
||||||
|
//lets play cleanup
|
||||||
|
memset(sDecodeBuffer, 0, mDataSize);
|
||||||
}
|
}
|
||||||
else // not template
|
else // not template
|
||||||
{
|
{
|
||||||
@@ -262,13 +264,11 @@ std::string LLFloaterMessageLogItem::getString(LLTemplateMessageReader* readerp,
|
|||||||
readerp->getS32(block_name, var_name, valueS32, block_num);
|
readerp->getS32(block_name, var_name, valueS32, block_num);
|
||||||
stream << valueS32;
|
stream << valueS32;
|
||||||
break;
|
break;
|
||||||
/*
|
/*case MVT_S64:
|
||||||
case MVT_S64:
|
|
||||||
S64 valueS64;
|
S64 valueS64;
|
||||||
readerp->getS64(block_name, var_name, valueS64, block_num);
|
readerp->getS64(block_name, var_name, valueS64, block_num);
|
||||||
stream << valueS64;
|
stream << valueS64;
|
||||||
break;
|
break;*/
|
||||||
*/
|
|
||||||
case MVT_F32:
|
case MVT_F32:
|
||||||
F32 valueF32;
|
F32 valueF32;
|
||||||
readerp->getF32(block_name, var_name, valueF32, block_num);
|
readerp->getF32(block_name, var_name, valueF32, block_num);
|
||||||
|
|||||||
@@ -384,6 +384,9 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
|
|||||||
gAgent.setTeleportMessage(
|
gAgent.setTeleportMessage(
|
||||||
LLAgent::sTeleportProgressMessages["arriving"]);
|
LLAgent::sTeleportProgressMessages["arriving"]);
|
||||||
gImageList.mForceResetTextureStats = TRUE;
|
gImageList.mForceResetTextureStats = TRUE;
|
||||||
|
// <edit>
|
||||||
|
if(gAgent.getFocusOnAvatar())
|
||||||
|
// </edit>
|
||||||
gAgent.resetView(TRUE, TRUE);
|
gAgent.resetView(TRUE, TRUE);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -407,7 +410,10 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot)
|
|||||||
// Short delay when teleporting in the same sim (progress screen active but not shown - did not
|
// Short delay when teleporting in the same sim (progress screen active but not shown - did not
|
||||||
// fall-through from TELEPORT_START)
|
// fall-through from TELEPORT_START)
|
||||||
{
|
{
|
||||||
if( gTeleportDisplayTimer.getElapsedTimeF32() > TELEPORT_LOCAL_DELAY )
|
// <edit>
|
||||||
|
// is this really needed.... I say no.
|
||||||
|
//if( gTeleportDisplayTimer.getElapsedTimeF32() > TELEPORT_LOCAL_DELAY )
|
||||||
|
// </edit>
|
||||||
{
|
{
|
||||||
LLFirstUse::useTeleport();
|
LLFirstUse::useTeleport();
|
||||||
gAgent.setTeleportState( LLAgent::TELEPORT_NONE );
|
gAgent.setTeleportState( LLAgent::TELEPORT_NONE );
|
||||||
|
|||||||
@@ -3209,6 +3209,10 @@ bool handle_sit_or_stand()
|
|||||||
|
|
||||||
if (object && object->getPCode() == LL_PCODE_VOLUME)
|
if (object && object->getPCode() == LL_PCODE_VOLUME)
|
||||||
{
|
{
|
||||||
|
// <edit>
|
||||||
|
gReSitTargetID = object->mID;
|
||||||
|
gReSitOffset = pick.mObjectOffset;
|
||||||
|
// </edit>
|
||||||
gMessageSystem->newMessageFast(_PREHASH_AgentRequestSit);
|
gMessageSystem->newMessageFast(_PREHASH_AgentRequestSit);
|
||||||
gMessageSystem->nextBlockFast(_PREHASH_AgentData);
|
gMessageSystem->nextBlockFast(_PREHASH_AgentData);
|
||||||
gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID());
|
gMessageSystem->addUUIDFast(_PREHASH_AgentID, gAgent.getID());
|
||||||
|
|||||||
@@ -5541,6 +5541,9 @@ void process_script_dialog(LLMessageSystem* msg, void**)
|
|||||||
LLSD args;
|
LLSD args;
|
||||||
args["TITLE"] = title;
|
args["TITLE"] = title;
|
||||||
args["MESSAGE"] = message;
|
args["MESSAGE"] = message;
|
||||||
|
// <edit>
|
||||||
|
args["CHANNEL"] = chat_channel;
|
||||||
|
// </edit>
|
||||||
LLNotificationPtr notification;
|
LLNotificationPtr notification;
|
||||||
if (!first_name.empty())
|
if (!first_name.empty())
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2478,7 +2478,26 @@ U32 LLVOAvatar::processUpdateMessage(LLMessageSystem *mesgsys,
|
|||||||
|
|
||||||
//llinfos << getRotation() << llendl;
|
//llinfos << getRotation() << llendl;
|
||||||
//llinfos << getPosition() << 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;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -6046,7 +6046,7 @@ Grant this request?
|
|||||||
icon="notify.tga"
|
icon="notify.tga"
|
||||||
name="ScriptDialog"
|
name="ScriptDialog"
|
||||||
type="notify">
|
type="notify">
|
||||||
[FIRST] [LAST]'s '[TITLE]'
|
[FIRST] [LAST]'s '[TITLE]' (ch[CHANNEL])
|
||||||
[MESSAGE]
|
[MESSAGE]
|
||||||
<form name="form">
|
<form name="form">
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user