updateListener() every frame

This commit is contained in:
greye 2012-10-01 11:24:44 +04:00
parent 20a263738a
commit f907a6a86f

View file

@ -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));