diff options
author | James Brown | 2003-02-14 16:01:55 +0000 |
---|---|---|
committer | James Brown | 2003-02-14 16:01:55 +0000 |
commit | d054457496883bc4ae85700f9bcfae38628e6f2a (patch) | |
tree | a7eb8e4b1f36df5b03217fb8f1485f18ff95d5cd /scumm/smush | |
parent | db0997e890de515796a3cabcb663b8d5e799a82c (diff) | |
download | scummvm-rg350-d054457496883bc4ae85700f9bcfae38628e6f2a.tar.gz scummvm-rg350-d054457496883bc4ae85700f9bcfae38628e6f2a.tar.bz2 scummvm-rg350-d054457496883bc4ae85700f9bcfae38628e6f2a.zip |
Patch #682981: Experimental translation optimisation (version 2), and
#683384: Smush Regression Workaround
svn-id: r6607
Diffstat (limited to 'scumm/smush')
-rw-r--r-- | scumm/smush/player.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scumm/smush/player.cpp b/scumm/smush/player.cpp index cdce084e00..8024704485 100644 --- a/scumm/smush/player.cpp +++ b/scumm/smush/player.cpp @@ -486,6 +486,12 @@ void SmushPlayer::handleTextResource(Chunk & b) { g_scumm->translateText((byte*)str - 1, g_scumm->_transText); while(*str++ != '/'); string2 = (char*)g_scumm->_transText; + + // If string2 contains formatting information there probably + // wasn't any translation for it in the language.tab file. In + // that case, pretend there is no string2. + if (string2[0] == '^') + string2[0] = 0; } while(str[0] == '^') { |