aboutsummaryrefslogtreecommitdiff
path: root/scumm/string.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-04-29 01:08:58 +0000
committerTravis Howell2005-04-29 01:08:58 +0000
commit08e115a5165ff8c3d982ba858b472588c57beae7 (patch)
tree6c086735587c9f60f46da2af27017fc0e84b6692 /scumm/string.cpp
parentd03b09265902a5a8c915fb515e1fef259c9fb618 (diff)
downloadscummvm-rg350-08e115a5165ff8c3d982ba858b472588c57beae7.tar.gz
scummvm-rg350-08e115a5165ff8c3d982ba858b472588c57beae7.tar.bz2
scummvm-rg350-08e115a5165ff8c3d982ba858b472588c57beae7.zip
pajama3 requires GF_HE_LOCALIZED
Add freddi2 specific filter for (PU1/PU2) prefix in subtitles. svn-id: r17857
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r--scumm/string.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index 74f56709dd..ab261ac90e 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -601,10 +601,14 @@ int ScummEngine::addMessageToStack(const byte *msg, byte *dst, int dstSize) {
while (1) {
chr = src[num++];
- if ((_features & GF_HE_LOCALIZED) && chr == '[') {
- while (src[num++] != ']');
+ if ((_gameId == GID_FREDDI2) && (src[num - 1] == '(' && src[num] == 'P' && src[num + 1] == 'U')) {
+ while (src[num++] != ')');
continue;
}
+ if ((_features & GF_HE_LOCALIZED) && chr == '[') {
+ while (src[num++] != ']');
+ continue;
+ }
if (chr == 0)
break;