diff options
author | Max Horn | 2009-05-31 15:08:47 +0000 |
---|---|---|
committer | Max Horn | 2009-05-31 15:08:47 +0000 |
commit | cf68dc1a7bd1c045a349c28b5811b55cfb49d942 (patch) | |
tree | a6c429288a948e653cb17c6933420b44aaf497a0 /engines/sci/console.cpp | |
parent | 4fba6e5d4c6c8b174296e189c935b4678e2c4683 (diff) | |
download | scummvm-rg350-cf68dc1a7bd1c045a349c28b5811b55cfb49d942.tar.gz scummvm-rg350-cf68dc1a7bd1c045a349c28b5811b55cfb49d942.tar.bz2 scummvm-rg350-cf68dc1a7bd1c045a349c28b5811b55cfb49d942.zip |
SCI: Renamed some Vocabulary methods for clarity; also renamed decypherSaidBlock -> decipherSaidBlock; some cleanup in Console::cmdSentenceFragments
svn-id: r41072
Diffstat (limited to 'engines/sci/console.cpp')
-rw-r--r-- | engines/sci/console.cpp | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/engines/sci/console.cpp b/engines/sci/console.cpp index 0ac71d3fb8..a8883b549c 100644 --- a/engines/sci/console.cpp +++ b/engines/sci/console.cpp @@ -499,29 +499,30 @@ bool Console::cmdSentenceFragments(int argc, const char **argv) { for (uint i = 0; i < g_EngineState->_vocabulary->getParserBranchesSize(); i++) { int j = 0; - DebugPrintf("R%02d: [%x] ->", i, g_EngineState->_vocabulary->getParseTreeBranch(i).id); - while ((j < 10) && g_EngineState->_vocabulary->getParseTreeBranch(i).data[j]) { - int dat = g_EngineState->_vocabulary->getParseTreeBranch(i).data[j++]; + const parse_tree_branch_t &branch = g_EngineState->_vocabulary->getParseTreeBranch(i); + DebugPrintf("R%02d: [%x] ->", i, branch.id); + while ((j < 10) && branch.data[j]) { + int dat = branch.data[j++]; switch (dat) { case VOCAB_TREE_NODE_COMPARE_TYPE: - dat = g_EngineState->_vocabulary->getParseTreeBranch(i).data[j++]; + dat = branch.data[j++]; DebugPrintf(" C(%x)", dat); break; case VOCAB_TREE_NODE_COMPARE_GROUP: - dat = g_EngineState->_vocabulary->getParseTreeBranch(i).data[j++]; + dat = branch.data[j++]; DebugPrintf(" WG(%x)", dat); break; case VOCAB_TREE_NODE_FORCE_STORAGE: - dat = g_EngineState->_vocabulary->getParseTreeBranch(i).data[j++]; + dat = branch.data[j++]; DebugPrintf(" FORCE(%x)", dat); break; default: if (dat > VOCAB_TREE_NODE_LAST_WORD_STORAGE) { - int dat2 = g_EngineState->_vocabulary->getParseTreeBranch(i).data[j++]; + int dat2 = branch.data[j++]; DebugPrintf(" %x[%x]", dat, dat2); } else DebugPrintf(" ?%x?", dat); |