aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2016-11-06 15:47:48 -0500
committerPaul Gilbert2016-11-06 15:47:48 -0500
commit23f606a7a3140d29ea7f0f3ae2d02791ef283482 (patch)
treeda8e46bca69d30036f4db3251cdb558e6fc9ff2c
parente6c15b8f4d3d02c8b071ca389f5e0a0c4fbc17db (diff)
downloadscummvm-rg350-23f606a7a3140d29ea7f0f3ae2d02791ef283482.tar.gz
scummvm-rg350-23f606a7a3140d29ea7f0f3ae2d02791ef283482.tar.bz2
scummvm-rg350-23f606a7a3140d29ea7f0f3ae2d02791ef283482.zip
TITANIC: Workaround original game bug in fish response
The original was meant to allow you to enter "fish" in response to the Deskbot's fish question, but it didn't because fish was also recognised as a common phrase for replacement during pre-processing
-rw-r--r--engines/titanic/true_talk/deskbot_script.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/titanic/true_talk/deskbot_script.cpp b/engines/titanic/true_talk/deskbot_script.cpp
index 0816a22920..8daf0560c3 100644
--- a/engines/titanic/true_talk/deskbot_script.cpp
+++ b/engines/titanic/true_talk/deskbot_script.cpp
@@ -1358,19 +1358,25 @@ int DeskbotScript::preprocess(const TTroomScript *roomScript, const TTsentence *
case 92:
case 93:
+ // "Fish?"
if (sentence->_field2C == 11 || sentence->_field2C == 13) {
+ // Yes
addResponse(getDialogueId(241077));
addResponse(getDialogueId(241706));
} else if (sentence->_field2C == 12) {
+ // No
addAssignedRoom();
setState(0);
CTrueTalkManager::setFlags(CURRENT_STATE, 0);
return 2;
- } else if (g_vm->_trueTalkManager->_quotes.find(sentence->_normalizedLine.c_str())
+ } else if (g_vm->_trueTalkManager->_quotes.find(sentence->_initialLine.c_str())
== MKTAG('F', 'I', 'S', 'H')) {
+ // WORKAROUND: Original passed _normalizedLine, but "fish" is one of the common
+ // phrases replaced with with alternative text "completelyrandom"
addResponse(getDialogueId(240877));
addResponse(getDialogueId(241706));
}else {
+ // All other responses
if (getRandomNumber(100) < 80 && sentence2C(sentence))
addResponse(getDialogueId(241707));