|
|
@ -1789,7 +1789,7 @@ namespace MWWorld
|
|
|
|
osg::Vec3f forward = listenerOrient * osg::Vec3f(0,1,0);
|
|
|
|
osg::Vec3f forward = listenerOrient * osg::Vec3f(0,1,0);
|
|
|
|
osg::Vec3f up = listenerOrient * osg::Vec3f(0,0,1);
|
|
|
|
osg::Vec3f up = listenerOrient * osg::Vec3f(0,0,1);
|
|
|
|
|
|
|
|
|
|
|
|
bool underwater = isUnderwater(getPlayerPtr().getCell(), listenerPos);
|
|
|
|
bool underwater = isUnderwater(getPlayerPtr().getCell(), mRendering->getCameraPosition());
|
|
|
|
|
|
|
|
|
|
|
|
MWBase::Environment::get().getSoundManager()->setListenerPosDir(listenerPos, forward, up, underwater);
|
|
|
|
MWBase::Environment::get().getSoundManager()->setListenerPosDir(listenerPos, forward, up, underwater);
|
|
|
|
}
|
|
|
|
}
|
|
|
|