aboutsummaryrefslogtreecommitdiff
path: root/engines/startrek/room.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2019-10-29 02:57:28 +0200
committerFilippos Karapetis2019-10-29 02:58:36 +0200
commitefb51d8fb55633b46f654d8684551ded3443b383 (patch)
tree1386315ece19ca10e25494fb32771657aa1d70ae /engines/startrek/room.cpp
parentb2d1cfa12669b4273d8be8fd4fd99e6b02db10ec (diff)
downloadscummvm-rg350-efb51d8fb55633b46f654d8684551ded3443b383.tar.gz
scummvm-rg350-efb51d8fb55633b46f654d8684551ded3443b383.tar.bz2
scummvm-rg350-efb51d8fb55633b46f654d8684551ded3443b383.zip
STARTREK: Read the text of the FEATHER mission from RDF files
Diffstat (limited to 'engines/startrek/room.cpp')
-rw-r--r--engines/startrek/room.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/startrek/room.cpp b/engines/startrek/room.cpp
index 71c778acc0..0cc2a444be 100644
--- a/engines/startrek/room.cpp
+++ b/engines/startrek/room.cpp
@@ -203,6 +203,16 @@ Common::String Room::patchRoomMessage(const char *text) {
{ "#MUD3\\MUD3_011#", "to think after all the stunts that Harry has pulled", "to think that after all the stunts that Harry has pulled," },
{ "#MUD3\\MUD3_022#", "and they were certain", "and they are certain" },
{ "#MUD3\\MUD4_008#", "DId you know", "Did you know" },
+ { "#FEA1\\FEA1_035#", "before it retreats Captain", "before it retreats, Captain" },
+ { "#FEA1\\FEA1_041#", "it must have a nasty bite", "it may have a nasty bite" },
+ { "#FEA3\\FEA3_012#", "he'll be up in about an hour", "he'll be up in about a half hour" },
+ { "#FEA3\\FEA3_030#", "sHe's dead, Jim!", "He's dead, Jim!" },
+ { "#FEA5\\FEA5_009#", "those thorns.You might", "those thorns. You might" },
+ { "#FEA5\\FEA5_018#", "with our phaser not working", "with our phasers not working" },
+ { "#FEA5\\FEA5_020#", "in a previous life", "in your previous life" },
+ { "#FEA6\\FEA6_017#", "isn't that just great", "isn't this just great" },
+ { "#FEA6\\FEA6_019#", "that action, Captain It may", "that action, Captain. It may" },
+ { "#FEA6\\FEA6N016#", "that attack you", "that attacked you" },
{ "", "", "" }
};
@@ -211,6 +221,11 @@ Common::String Room::patchRoomMessage(const char *text) {
if (txt[10] == '-')
txt.replace(10, 1, "_");
+ // Fix typos where some messages contain double spacing (e.g. in FEA3_020)
+ int32 spacePos = txt.find(" ");
+ if (spacePos > 0)
+ txt.deleteChar(spacePos);
+
// Fix typos
do {
const Common::String origText = typoFixes[i].origText;