forked from mirror/openmw-tes3mp
Fix camera distance not getting reset to max value (Fixes #3473)
This commit is contained in:
parent
2ed813d5f3
commit
19a8800d4d
2 changed files with 4 additions and 12 deletions
|
@ -54,7 +54,6 @@ namespace MWRender
|
|||
mIsNearest(false),
|
||||
mHeight(124.f),
|
||||
mMaxCameraDistance(192.f),
|
||||
mDistanceAdjusted(false),
|
||||
mVanityToggleQueued(false),
|
||||
mVanityToggleQueuedValue(false),
|
||||
mViewModeToggleQueued(false),
|
||||
|
@ -342,21 +341,16 @@ namespace MWRender
|
|||
} else if (!mFirstPersonView) {
|
||||
mMaxCameraDistance = mCameraDistance;
|
||||
}
|
||||
} else {
|
||||
mDistanceAdjusted = true;
|
||||
}
|
||||
}
|
||||
|
||||
void Camera::setCameraDistance()
|
||||
{
|
||||
if (mDistanceAdjusted) {
|
||||
if (mVanity.enabled || mPreviewMode) {
|
||||
mCameraDistance = mPreviewCam.offset;
|
||||
} else if (!mFirstPersonView) {
|
||||
mCameraDistance = mMaxCameraDistance;
|
||||
}
|
||||
if (mVanity.enabled || mPreviewMode) {
|
||||
mCameraDistance = mPreviewCam.offset;
|
||||
} else if (!mFirstPersonView) {
|
||||
mCameraDistance = mMaxCameraDistance;
|
||||
}
|
||||
mDistanceAdjusted = false;
|
||||
}
|
||||
|
||||
void Camera::setAnimation(NpcAnimation *anim)
|
||||
|
|
|
@ -49,8 +49,6 @@ namespace MWRender
|
|||
float mHeight, mMaxCameraDistance;
|
||||
CamData mMainCam, mPreviewCam;
|
||||
|
||||
bool mDistanceAdjusted;
|
||||
|
||||
bool mVanityToggleQueued;
|
||||
bool mVanityToggleQueuedValue;
|
||||
bool mViewModeToggleQueued;
|
||||
|
|
Loading…
Reference in a new issue