Ticket #8343: sound.cpp.diff

File sound.cpp.diff, 487 bytes (added by SF/lord_nightmare, 20 years ago)

Patch for sound.cpp to fix the assertion

  • sound.cpp

    old new  
    249249                // then a semi-sane VOC header is revealed, with
    250250                // a sampling rate of ~25000 Hz (does that make sense?).
    251251                // I'll add some code to test that theory for now.
    252                 if (_vm->_gameId == GID_MONKEY_SEGA)    {
     252                if ((_vm->_gameId == GID_MONKEY_SEGA) && (ptr[0] != 1)) {
    253253                        for (int i = 0; i < size; i++)   {
    254254                                ptr[i] ^= 0x16;
    255255                                if (ptr[i] >= 0x7F)   {