I hate being unsat when pressing ESC

This commit is contained in:
Siana Gearz
2010-11-29 00:23:02 +01:00
parent 601ac48a2d
commit e1b9109bee
4 changed files with 27 additions and 8 deletions

View File

@@ -4191,15 +4191,16 @@ void LLAgent::changeCameraToThirdPerson(BOOL animate)
return;
}
// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g)
if ( (gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT)) && (mAvatarObject.notNull()) && (mAvatarObject->mIsSitting) )
// [RLVa:KB] - Checked: 2009-07-10 (RLVa-1.0.0g) +SG
if ( (!gRlvHandler.hasBehaviour(RLV_BHVR_UNSIT))
&& (mAvatarObject.notNull())
&& (mAvatarObject->mIsSitting)
&& gSavedSettings.getBOOL("SianaUnsitOnCamReset"))
{
return;
setControlFlags(AGENT_CONTROL_STAND_UP); // force stand up
}
// [/RLVa:KB]
setControlFlags(AGENT_CONTROL_STAND_UP); // force stand up
gViewerWindow->getWindow()->resetBusyCount();
mCameraZoomFraction = INITIAL_ZOOM_FRACTION;