[RLVa] When trapped in mouselook, avoid potential glitches and excess work if reset_view_final is called

This commit is contained in:
Inusaito Sayori
2015-06-04 09:37:59 -04:00
parent 63b67d62ef
commit 96e88b97ef

View File

@@ -4045,6 +4045,8 @@ void reset_view_final( BOOL proceed )
return;
}
if (gRlvHandler.hasBehaviour(RLV_BHVR_CAMDISTMAX) && gRlvHandler.camPole(RLV_BHVR_CAMDISTMAX) <= 0) return; // RLVa:LF - Trapped in mouselook; avoid extra work (and potential glitches)
if (!gViewerWindow->getLeftMouseDown() && gAgentCamera.cameraThirdPerson() && gSavedSettings.getBOOL("ResetViewTurnsAvatar") && !gSavedSettings.getBOOL("FreezeTime"))
{
gAgentCamera.setFocusOnAvatar(TRUE, ANIMATE);