From f944b629881765626cedf37702f712bd30c8bdd3 Mon Sep 17 00:00:00 2001 From: Bastien Bouclet Date: Tue, 2 Aug 2016 19:43:15 +0200 Subject: MOHAWK: Change Riven's scripts not to have a type --- engines/mohawk/console.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'engines/mohawk/console.cpp') diff --git a/engines/mohawk/console.cpp b/engines/mohawk/console.cpp index 82173c2670..4d30008b4f 100644 --- a/engines/mohawk/console.cpp +++ b/engines/mohawk/console.cpp @@ -619,7 +619,8 @@ bool RivenConsole::Cmd_DumpScript(int argc, const char **argv) { cardStream->seek(4); RivenScriptList scriptList = _vm->_scriptMan->readScripts(cardStream); for (uint32 i = 0; i < scriptList.size(); i++) { - scriptList[i]->dumpScript(varNames, xNames, 0); + debugN("Stream Type %d:\n", scriptList[i].type); + scriptList[i].script->dumpScript(varNames, xNames, 0); } delete cardStream; } else if (!scumm_stricmp(argv[2], "HSPT")) { @@ -636,7 +637,8 @@ bool RivenConsole::Cmd_DumpScript(int argc, const char **argv) { hsptStream->seek(22, SEEK_CUR); // Skip non-script related stuff RivenScriptList scriptList = _vm->_scriptMan->readScripts(hsptStream); for (uint32 j = 0; j < scriptList.size(); j++) { - scriptList[j]->dumpScript(varNames, xNames, 1); + debugN("\tStream Type %d:\n", scriptList[i].type); + scriptList[j].script->dumpScript(varNames, xNames, 1); } } -- cgit v1.2.3