Ticket #8040: musichack.diff

File musichack.diff, 920 bytes (added by eriktorbjorn, 22 years ago)

Patch against a September 10 CVS snapshot

  • scummvm/scumm/imuse.cpp

    diff -ur ScummVM-cvs20020910/scummvm/scumm/imuse.cpp ScummVM-cvs20020910+hack/scummvm/scumm/imuse.cpp
    old new  
    30383038                        player->set_tempo(player->_tempo);
    30393039                        scumm->getResourceAddress(rtSound, player->_id);
    30403040                        player->_mt32emulate = isMT32(player->_id);
     3041                        if (scumm->_use_adlib) {
     3042                                // FIXME - This should make sure the right
     3043                                // instruments are loaded, but it does not
     3044                                // even try to move to the right position in
     3045                                // the track. Using scan() gives a marginally
     3046                                // better result, but not good enough.
     3047                                //
     3048                                // The correct fix is probably to store the
     3049                                // Adlib instruments, or information on where
     3050                                // to find them, in the savegame.
     3051                                player->jump(player->_track_index, 0, 0);
     3052                        }
    30413053                }
    30423054        }
    30433055}