SCUMM: Restrict the "I am Choas." Loom workaround to the English talkie

This commit is contained in:
Donovan Watteau 2022-08-10 13:30:07 +02:00 committed by Filippos Karapetis
parent 611b7639e3
commit 1e44fd3fdf

View file

@ -3239,7 +3239,9 @@ void ScummEngine_v5::decodeParseString() {
case 15:{ // SO_TEXTSTRING
const int len = resStrLen(_scriptPointer);
if (_game.id == GID_LOOM && vm.slot[_currentScript].number == 95 && _enableEnhancements && strcmp((const char *)_scriptPointer, "I am Choas.") == 0) {
if (_game.id == GID_LOOM && _game.version == 4 && _language == Common::EN_ANY &&
vm.slot[_currentScript].number == 95 && _enableEnhancements &&
strcmp((const char *)_scriptPointer, "I am Choas.") == 0) {
// WORKAROUND: This happens when Chaos introduces
// herself to bishop Mandible. Of all the places to put
// a typo...