1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00

Add a couple comments

This commit is contained in:
Chris Robinson 2012-03-17 10:45:11 -07:00
parent 7160d20db3
commit a91085a1b9

View File

@ -445,12 +445,16 @@ namespace MWSound
nDir = cam->getRealDirection();
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 at[3] = { nDir[0], -nDir[2], nDir[1] };
float up[3] = { nUp[0], -nUp[2], nUp[1] };
Output->UpdateListener(pos, at, up);
// Check if any "untracked" sounds are finished playing, and trash
// them
IDMap::iterator snditer = LooseSounds.begin();
while(snditer != LooseSounds.end())
{