forked from teamnwah/openmw-tes3coop
Merge remote-tracking branch 'scrawl/master'
This commit is contained in:
commit
eedced729f
4 changed files with 9 additions and 4 deletions
|
@ -99,9 +99,11 @@ namespace MWRender
|
|||
MWBase::Environment::get().getSoundManager()->setListenerPosDir(pos, dir, up);
|
||||
}
|
||||
|
||||
void Camera::update(float duration)
|
||||
void Camera::update(float duration, bool paused)
|
||||
{
|
||||
updateListener();
|
||||
if (paused)
|
||||
return;
|
||||
|
||||
// only show the crosshair in game mode and in first person mode.
|
||||
MWBase::WindowManager *wm = MWBase::Environment::get().getWindowManager();
|
||||
|
|
|
@ -84,7 +84,7 @@ namespace MWRender
|
|||
|
||||
void processViewChange();
|
||||
|
||||
void update(float duration);
|
||||
void update(float duration, bool paused=false);
|
||||
|
||||
/// Set camera distance for current mode. Don't work on 1st person view.
|
||||
/// \param adjust Indicates should distance be adjusted or set.
|
||||
|
|
|
@ -351,11 +351,11 @@ void RenderingManager::update (float duration, bool paused)
|
|||
|
||||
applyFog(world->isUnderwater(player.getCell(), cam));
|
||||
|
||||
mCamera->update(duration, paused);
|
||||
|
||||
if(paused)
|
||||
return;
|
||||
|
||||
mCamera->update(duration);
|
||||
|
||||
mActors.update (duration);
|
||||
mObjects.update (duration);
|
||||
|
||||
|
|
|
@ -53,6 +53,9 @@ namespace MWSound
|
|||
, mFootstepsVolume(1.0f)
|
||||
, mVoiceVolume(1.0f)
|
||||
, mPausedSoundTypes(0)
|
||||
, mListenerPos(0,0,0)
|
||||
, mListenerDir(1,0,0)
|
||||
, mListenerUp(0,0,1)
|
||||
{
|
||||
if(!useSound)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue