comparison SaveLoad.cpp @ 764:90bcfb56c8f9

sound cleaning
author Gloval
date Sat, 23 Mar 2013 21:39:21 +0400
parents 8b29c4121f6f
children f5156b8c61ad
comparison
equal deleted inserted replaced
761:f24fb0d64a5c 764:90bcfb56c8f9
68 68
69 69
70 if (SoundSetAction[24][0]) 70 if (SoundSetAction[24][0])
71 for (uint i = 0; i < 4; ++i) 71 for (uint i = 0; i < 4; ++i)
72 { 72 {
73 for (uint j = 0; j < pSoundList->uNumSounds; ++j) 73 for (uint j = 0; j < pSoundList->sNumSounds; ++j)
74 if (pSoundList->pSounds[j].uSoundID == 2 * (SoundSetAction[24][0] + 50 * pParty->pPlayers[i].uVoiceID) + 4998) 74 if (pSoundList->pSounds[j].uSoundID == 2 * (SoundSetAction[24][0] + 50 * pParty->pPlayers[i].uVoiceID) + 4998)
75 { 75 {
76 pSoundList->_4A9DCD(j, 1); 76 pSoundList->UnloadSound(j, 1);
77 break; 77 break;
78 } 78 }
79 79
80 for (uint j = 0; j < pSoundList->uNumSounds; ++j) 80 for (uint j = 0; j < pSoundList->sNumSounds; ++j)
81 if (pSoundList->pSounds[j].uSoundID == 2 * (SoundSetAction[24][0] + 50 * pParty->pPlayers[i].uVoiceID) + 4999) 81 if (pSoundList->pSounds[j].uSoundID == 2 * (SoundSetAction[24][0] + 50 * pParty->pPlayers[i].uVoiceID) + 4999)
82 { 82 {
83 pSoundList->_4A9DCD(j, 1); 83 pSoundList->UnloadSound(j, 1);
84 break; 84 break;
85 } 85 }
86 } 86 }
87 87
88 sprintf(pTmpBuf, "saves\\%s", pSavegameList->pFileList[uSlot].pSaveFileName); 88 sprintf(pTmpBuf, "saves\\%s", pSavegameList->pFileList[uSlot].pSaveFileName);