DIRECTOR: Dump Cast script too

This commit is contained in:
Eugene Sandulenko 2017-01-13 21:56:19 +01:00
parent 536bc29e54
commit 7c2c06b537

View File

@ -521,6 +521,9 @@ void Score::loadCastData(Common::SeekableSubReadStreamEndian &stream, uint16 id,
if (!ci->script.empty()) {
//the script type here could be wrong!
if (ConfMan.getBool("dump_scripts"))
dumpScript(ci->script.c_str(), kCastScript, id);
_lingo->addCode(ci->script.c_str(), kCastScript, id);
}
}