mirror of
https://github.com/libretro/scummvm.git
synced 2025-05-13 17:46:22 +00:00
remove useless double check on sound list entries
svn-id: r32076
This commit is contained in:
parent
c630fbde6a
commit
6b5709be14
@ -1226,14 +1226,12 @@ void KyraEngine_HoF::initStaticResource() {
|
|||||||
tmpSndLst[i] = new char[len + 1];
|
tmpSndLst[i] = new char[len + 1];
|
||||||
tmpSndLst[i][0] = 0;
|
tmpSndLst[i][0] = 0;
|
||||||
|
|
||||||
if (tlkfiles && strlen(seqSoundList[i])) {
|
if (tlkfiles && len > 1) {
|
||||||
for (int ii = 0; ii < tmpSize; ii++) {
|
for (int ii = 0; ii < tmpSize; ii++) {
|
||||||
if (strlen(seqSoundList[i])) {
|
|
||||||
if (!scumm_stricmp(&seqSoundList[i][1], &tlkfiles[ii][1]))
|
if (!scumm_stricmp(&seqSoundList[i][1], &tlkfiles[ii][1]))
|
||||||
strcpy(tmpSndLst[i], tlkfiles[ii]);
|
strcpy(tmpSndLst[i], tlkfiles[ii]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (tmpSndLst[i][0] == 0)
|
if (tmpSndLst[i][0] == 0)
|
||||||
strcpy(tmpSndLst[i], seqSoundList[i]);
|
strcpy(tmpSndLst[i], seqSoundList[i]);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user