aboutsummaryrefslogtreecommitdiff
path: root/engines/sherlock/talk.cpp
diff options
context:
space:
mode:
authorsirlemonhead2015-05-17 20:41:42 +0100
committersirlemonhead2015-05-17 20:41:46 +0100
commit5e351b6bf3988b33a6af952331039083c3b2aff8 (patch)
treeef3329727a95bb7f27afa02688156093ba5bf6ce /engines/sherlock/talk.cpp
parent2abb5f19772125ec5b91619e39ffd2fd4b733641 (diff)
downloadscummvm-rg350-5e351b6bf3988b33a6af952331039083c3b2aff8.tar.gz
scummvm-rg350-5e351b6bf3988b33a6af952331039083c3b2aff8.tar.bz2
scummvm-rg350-5e351b6bf3988b33a6af952331039083c3b2aff8.zip
SHERLOCK: Replace scumm_stricmp() with equalsIgnoreCase()
Diffstat (limited to 'engines/sherlock/talk.cpp')
-rw-r--r--engines/sherlock/talk.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sherlock/talk.cpp b/engines/sherlock/talk.cpp
index d656431823..b38b432e37 100644
--- a/engines/sherlock/talk.cpp
+++ b/engines/sherlock/talk.cpp
@@ -1160,7 +1160,7 @@ void Talk::doScript(const Common::String &script) {
// Scan for object
int objId = -1;
for (uint idx = 0; idx < scene._bgShapes.size(); ++idx) {
- if (scumm_stricmp(tempString.c_str(), scene._bgShapes[idx]._name.c_str()) == 0)
+ if (tempString.equalsIgnoreCase(scene._bgShapes[idx]._name))
objId = idx;
}
if (objId == -1)
@@ -1372,7 +1372,7 @@ void Talk::doScript(const Common::String &script) {
for (uint idx = 0; idx < scene._bgShapes.size(); ++idx) {
Object &object = scene._bgShapes[idx];
- if (scumm_stricmp(tempString.c_str(), object._name.c_str()) == 0) {
+ if (tempString.equalsIgnoreCase(object._name)) {
// Only toggle the object if it's not in the desired state already
if ((object._type == HIDDEN && state) || (object._type != HIDDEN && !state))
object.toggleHidden();