Skip to content

Commit

Permalink
TSAGE: Work around a data issue in R2R.
Browse files Browse the repository at this point in the history
The character name doesn't seem case sensitive in R2R
  • Loading branch information
Strangerke committed Dec 21, 2011
1 parent d49ffde commit c40df9a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions engines/tsage/converse.cpp
Expand Up @@ -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;
}

Expand Down

0 comments on commit c40df9a

Please sign in to comment.