Ticket #8172: cmi-smushhack.diff

File cmi-smushhack.diff, 708 bytes (added by eriktorbjorn, 21 years ago)

Patch against a February 8 CVS snapshot

  • scummvm/scumm/smush/player.cpp

    diff -ur ScummVM-cvs20030208/scummvm/scumm/smush/player.cpp ScummVM-cvs20030208+hack/scummvm/scumm/smush/player.cpp
    old new  
    486486                g_scumm->translateText((byte*)str - 1, g_scumm->_transText);
    487487                while(*str++ != '/');
    488488                string2 = (char*)g_scumm->_transText;
     489
     490                // If string2 contains formatting information there probably
     491                // wasn't any translation for it in the language.tab file. In
     492                // that case, pretend there is no string2.
     493                if (string2[0] == '^')
     494                        string2[0] = 0;
    489495        }
    490496
    491497        while(str[0] == '^') {