diff options
author | sirlemonhead | 2015-05-17 20:41:42 +0100 |
---|---|---|
committer | sirlemonhead | 2015-05-17 20:41:46 +0100 |
commit | 5e351b6bf3988b33a6af952331039083c3b2aff8 (patch) | |
tree | ef3329727a95bb7f27afa02688156093ba5bf6ce /engines/sherlock/scene.cpp | |
parent | 2abb5f19772125ec5b91619e39ffd2fd4b733641 (diff) | |
download | scummvm-rg350-5e351b6bf3988b33a6af952331039083c3b2aff8.tar.gz scummvm-rg350-5e351b6bf3988b33a6af952331039083c3b2aff8.tar.bz2 scummvm-rg350-5e351b6bf3988b33a6af952331039083c3b2aff8.zip |
SHERLOCK: Replace scumm_stricmp() with equalsIgnoreCase()
Diffstat (limited to 'engines/sherlock/scene.cpp')
-rw-r--r-- | engines/sherlock/scene.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/engines/sherlock/scene.cpp b/engines/sherlock/scene.cpp index 3dcfddd428..8a906e9335 100644 --- a/engines/sherlock/scene.cpp +++ b/engines/sherlock/scene.cpp @@ -617,8 +617,7 @@ void Scene::checkSceneFlags(bool flag) { void Scene::checkInventory() { for (uint shapeIdx = 0; shapeIdx < _bgShapes.size(); ++shapeIdx) { for (int invIdx = 0; invIdx < _vm->_inventory->_holdings; ++invIdx) { - if (scumm_stricmp(_bgShapes[shapeIdx]._name.c_str(), - (*_vm->_inventory)[invIdx]._name.c_str()) == 0) { + if (_bgShapes[shapeIdx]._name.equalsIgnoreCase((*_vm->_inventory)[invIdx]._name)) { _bgShapes[shapeIdx]._type = INVALID; break; } @@ -757,7 +756,7 @@ int Scene::toggleObject(const Common::String &name) { int count = 0; for (uint idx = 0; idx < _bgShapes.size(); ++idx) { - if (scumm_stricmp(name.c_str(), _bgShapes[idx]._name.c_str()) == 0) { + if (name.equalsIgnoreCase(_bgShapes[idx]._name)) { ++count; _bgShapes[idx].toggleHidden(); } |