mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-20 08:53:51 +00:00
TSAGE: Work around a data issue in R2R.
The character name doesn't seem case sensitive in R2R
This commit is contained in:
parent
d49ffde8ea
commit
c40df9a6ed
@ -888,6 +888,17 @@ Speaker *StripManager::getSpeaker(const char *speakerName) {
|
||||
return _speakerList[idx];
|
||||
}
|
||||
|
||||
// TODO: Check if it necessary to make a strcmp first.
|
||||
//
|
||||
// If nothing is found, recheck and ignore the case as
|
||||
// in R2R, some character names aren't in uppercase.
|
||||
if (g_vm->getGameID() == GType_Ringworld2) {
|
||||
for (uint idx = 0; idx < _speakerList.size(); ++idx) {
|
||||
if (!scumm_stricmp(_speakerList[idx]->_speakerName.c_str(), speakerName))
|
||||
return _speakerList[idx];
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user