mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-22 10:23:53 +00:00
Add a couple comments
This commit is contained in:
parent
7160d20db3
commit
a91085a1b9
1 changed files with 5 additions and 1 deletions
|
@ -445,12 +445,16 @@ namespace MWSound
|
||||||
nDir = cam->getRealDirection();
|
nDir = cam->getRealDirection();
|
||||||
nUp = cam->getRealUp();
|
nUp = cam->getRealUp();
|
||||||
|
|
||||||
|
// The output handler is expecting vectors oriented like the game
|
||||||
|
// (that is, -Z goes down, +Y goes forward), but that's not what we
|
||||||
|
// get from Ogre's camera, so we have to convert.
|
||||||
float pos[3] = { nPos[0], -nPos[2], nPos[1] };
|
float pos[3] = { nPos[0], -nPos[2], nPos[1] };
|
||||||
float at[3] = { nDir[0], -nDir[2], nDir[1] };
|
float at[3] = { nDir[0], -nDir[2], nDir[1] };
|
||||||
float up[3] = { nUp[0], -nUp[2], nUp[1] };
|
float up[3] = { nUp[0], -nUp[2], nUp[1] };
|
||||||
Output->UpdateListener(pos, at, up);
|
Output->UpdateListener(pos, at, up);
|
||||||
|
|
||||||
|
// Check if any "untracked" sounds are finished playing, and trash
|
||||||
|
// them
|
||||||
IDMap::iterator snditer = LooseSounds.begin();
|
IDMap::iterator snditer = LooseSounds.begin();
|
||||||
while(snditer != LooseSounds.end())
|
while(snditer != LooseSounds.end())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue