From f907a6a86f17ffa37d0922e61b2f662a79da64b2 Mon Sep 17 00:00:00 2001 From: greye Date: Mon, 1 Oct 2012 11:24:44 +0400 Subject: [PATCH] updateListener() every frame --- apps/openmw/mwrender/player.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwrender/player.cpp b/apps/openmw/mwrender/player.cpp index 8c8bbb86f..51e7fa745 100644 --- a/apps/openmw/mwrender/player.cpp +++ b/apps/openmw/mwrender/player.cpp @@ -94,7 +94,6 @@ namespace MWRender } else { mCameraNode->setOrientation(zr * xr); } - updateListener(); } std::string Player::getHandle() const @@ -121,6 +120,8 @@ namespace MWRender void Player::update(float duration) { + updateListener(); + // only show the crosshair in game mode and in first person mode. MWBase::Environment::get().getWindowManager ()->showCrosshair (!MWBase::Environment::get().getWindowManager ()->isGuiMode () && (mFirstPersonView && !mVanity.enabled && !mPreviewMode));