diff options
| author | oy <tom_adams@web.de> | 2011-08-13 09:20:40 -0700 |
|---|---|---|
| committer | oy <tom_adams@web.de> | 2011-08-13 09:20:40 -0700 |
| commit | 3fba3ee13e93bc6f0086e282668a8ab579ba07da (patch) | |
| tree | c17c0042e9865ea0d6c0476ee7ef930b4dbcab35 /src/game/client/components/sounds.cpp | |
| parent | c56cfa12d511559b096579d4e7a80b7cb6bbb6fe (diff) | |
| parent | c6fd4a2cc57f8d9dec7164aff98f5a73abc9698d (diff) | |
| download | zcatch-3fba3ee13e93bc6f0086e282668a8ab579ba07da.tar.gz zcatch-3fba3ee13e93bc6f0086e282668a8ab579ba07da.zip | |
Merge pull request #832 from GreYFoX/oypull1
Cleanup
Diffstat (limited to 'src/game/client/components/sounds.cpp')
| -rw-r--r-- | src/game/client/components/sounds.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/client/components/sounds.cpp b/src/game/client/components/sounds.cpp index c4ade00e..65fb56fb 100644 --- a/src/game/client/components/sounds.cpp +++ b/src/game/client/components/sounds.cpp @@ -144,7 +144,7 @@ void CSounds::Play(int Chn, int SetId, float Vol, vec2 Pos) if(!pSet->m_NumSounds) return; - + int Flags = 0; if(Chn == CHN_MUSIC) Flags = ISound::FLAG_LOOP; @@ -170,9 +170,9 @@ void CSounds::Stop(int SetId) { if(m_WaitForSoundJob || SetId < 0 || SetId >= g_pData->m_NumSounds) return; - + CDataSoundset *pSet = &g_pData->m_aSounds[SetId]; - + for(int i = 0; i < pSet->m_NumSounds; i++) Sound()->Stop(pSet->m_aSounds[i].m_Id); } |