diff options
author | Eugene Sandulenko | 2019-06-29 00:44:34 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2019-09-03 17:17:04 +0200 |
commit | 806e9fedaceb77f0a69212e02eb515a041647ad1 (patch) | |
tree | 07124c8646d7c599f44817c91e7e853fabd29a8f | |
parent | 81ea30aa18541a5cf870099ff93bb6bbe78fa790 (diff) | |
download | scummvm-rg350-806e9fedaceb77f0a69212e02eb515a041647ad1.tar.gz scummvm-rg350-806e9fedaceb77f0a69212e02eb515a041647ad1.tar.bz2 scummvm-rg350-806e9fedaceb77f0a69212e02eb515a041647ad1.zip |
HDB: Use case-insensitive string comparison
-rw-r--r-- | engines/hdb/ai-cinematic.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/hdb/ai-cinematic.cpp b/engines/hdb/ai-cinematic.cpp index 1226470ac3..a295086ab3 100644 --- a/engines/hdb/ai-cinematic.cpp +++ b/engines/hdb/ai-cinematic.cpp @@ -316,18 +316,18 @@ void AI::processCines() { break; case C_USEENTITY: for (Common::Array<AIEntity *>::iterator it = _ents->begin(); it != _ents->end(); it++) { - if ((*it)->entityName && Common::matchString((*it)->entityName, _cine[i]->string)) { + if ((*it)->entityName && Common::matchString((*it)->entityName, _cine[i]->string, true)) { g_hdb->useEntity((*it)); } } for (int k = 0; k < kMaxActions; k++) { - if (_actions[k].entityName && Common::matchString(_actions[k].entityName, _cine[i]->string)) { + if (_actions[k].entityName && Common::matchString(_actions[k].entityName, _cine[i]->string, true)) { checkActionList(&_dummyPlayer, _actions[k].x1, _actions[k].y1, false); checkActionList(&_dummyPlayer, _actions[k].x2, _actions[k].y2, false); } } for (int j = 0; j < kMaxAutoActions; j++) { - if (_autoActions[j].entityName && Common::matchString(_autoActions[j].entityName, _cine[i]->string) && !_autoActions[j].activated) + if (_autoActions[j].entityName && Common::matchString(_autoActions[j].entityName, _cine[i]->string, true) && !_autoActions[j].activated) checkAutoList(&_dummyPlayer, _autoActions[j].x, _autoActions[j].y); } complete = true; @@ -424,7 +424,7 @@ void AI::cineAddToBlitList(const char *id, Picture *pic, int x, int y, bool mask Picture *AI::cineFindInBlitList(const char *name) { for (int i = 0; i < _numCineBlitList; i++) { - if (Common::matchString(_cineBlitList[i]->id, name)) + if (Common::matchString(_cineBlitList[i]->id, name, true)) return _cineBlitList[i]->pic; } return NULL; @@ -432,7 +432,7 @@ Picture *AI::cineFindInBlitList(const char *name) { void AI::cineRemoveFromBlitList(const char *name) { for (int i = 0; i < _numCineBlitList; i++) { - if (Common::matchString(_cineBlitList[i]->id, name)) + if (Common::matchString(_cineBlitList[i]->id, name, true)) delete _cineBlitList[i]; for (; i < _numCineBlitList - 1; i++) _cineBlitList[i] = _cineBlitList[i + 1]; |