reordered iMuseDigital stuff to be next to each other

svn-id: r7289
This commit is contained in:
Max Horn 2003-05-03 20:45:31 +00:00
parent 7e58986519
commit b3eb397ad2

View File

@ -179,8 +179,13 @@ void Sound::playSound(int soundID) {
ptr = _scumm->getResourceAddress(rtSound, soundID);
if (ptr) {
if (READ_UINT32_UNALIGNED(ptr) == MKID('iMUS')){
if (_scumm->_imuseDigital)
_scumm->_imuseDigital->startSound(soundID);
assert(_scumm->_imuseDigital);
_scumm->_imuseDigital->startSound(soundID);
return;
}
else if (READ_UINT32_UNALIGNED(ptr) == MKID('Crea')) {
assert(_scumm->_imuseDigital);
_scumm->_imuseDigital->startSound(soundID);
return;
}
else if (READ_UINT32_UNALIGNED(ptr) == MKID('SOUN')) {
@ -259,10 +264,6 @@ void Sound::playSound(int soundID) {
return;
}
else if (READ_UINT32_UNALIGNED(ptr) == MKID('Crea')) {
_scumm->_imuseDigital->startSound(soundID);
return;
}
else if (READ_UINT32_UNALIGNED(ptr) == MKID('ADL ')) {
// played as MIDI, just to make perhaps the later use
// of WA possible (see "else if" with GF_OLD256 below)