diff options
author | Paul Gilbert | 2016-11-30 21:40:10 -0500 |
---|---|---|
committer | Paul Gilbert | 2016-11-30 21:40:10 -0500 |
commit | 20832d79fb84b2f7fa7cd041b3006e1419c0916f (patch) | |
tree | a115e224bec9c8d75166500eedec6d10ae98d705 /engines/titanic/true_talk | |
parent | 51a208b00d884bca2145c65f39b4ac4974dee4a7 (diff) | |
download | scummvm-rg350-20832d79fb84b2f7fa7cd041b3006e1419c0916f.tar.gz scummvm-rg350-20832d79fb84b2f7fa7cd041b3006e1419c0916f.tar.bz2 scummvm-rg350-20832d79fb84b2f7fa7cd041b3006e1419c0916f.zip |
TITANIC: Fix caseless string contains checks
Diffstat (limited to 'engines/titanic/true_talk')
-rw-r--r-- | engines/titanic/true_talk/bellbot_script.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/engines/titanic/true_talk/bellbot_script.cpp b/engines/titanic/true_talk/bellbot_script.cpp index c51c918a2e..44fa961fcc 100644 --- a/engines/titanic/true_talk/bellbot_script.cpp +++ b/engines/titanic/true_talk/bellbot_script.cpp @@ -681,7 +681,8 @@ int BellbotScript::doSentenceEntry(int val1, const int *srcIdP, const TTroomScri CNodeItem *node = CTrueTalkManager::_currentNPC->getNode(); if (node) { CString nodeName = node->getName(); - if (nodeName == "5" || nodeName == "6" || nodeName == "7") { + if (nodeName.containsIgnoreCase("5") || nodeName.containsIgnoreCase("6") + || nodeName.containsIgnoreCase("7")) { CTrueTalkManager::triggerAction(29, 2); selectResponse(201571); applyResponse(); @@ -707,7 +708,8 @@ int BellbotScript::doSentenceEntry(int val1, const int *srcIdP, const TTroomScri CNodeItem *node = CTrueTalkManager::_currentNPC->getNode(); if (node) { CString nodeName = node->getName(); - if (nodeName == "5" || nodeName == "6" || nodeName != "7") { + if (nodeName.containsIgnoreCase("5") || nodeName.containsIgnoreCase("6") + || nodeName.containsIgnoreCase("7")) { CTrueTalkManager::triggerAction(29, 2); selectResponse(201571); applyResponse(); |