mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-09 03:39:14 +00:00
Fix failed assertion
This commit is contained in:
parent
b4ac1e1498
commit
9189a42c4c
@ -70,7 +70,6 @@ namespace MWInput
|
||||
mBindingsManager->mouseMoved(arg);
|
||||
|
||||
MWBase::InputManager* input = MWBase::Environment::get().getInputManager();
|
||||
MWBase::World* world = MWBase::Environment::get().getWorld();
|
||||
input->setJoystickLastUsed(false);
|
||||
input->resetIdleTime();
|
||||
|
||||
@ -94,6 +93,8 @@ namespace MWInput
|
||||
|
||||
if (mMouseLookEnabled && !input->controlsDisabled())
|
||||
{
|
||||
MWBase::World* world = MWBase::Environment::get().getWorld();
|
||||
|
||||
float x = arg.xrel * mCameraSensitivity * (mInvertX ? -1 : 1) / 256.f;
|
||||
float y = arg.yrel * mCameraSensitivity * (mInvertY ? -1 : 1) * mCameraYMultiplier / 256.f;
|
||||
|
||||
@ -110,7 +111,7 @@ namespace MWInput
|
||||
player.pitch(y);
|
||||
}
|
||||
else if (!input->getControlSwitch("playerlooking"))
|
||||
world->disableDeferredPreviewRotation();
|
||||
MWBase::Environment::get().getWorld()->disableDeferredPreviewRotation();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user