diff options
Diffstat (limited to 'engines/parallaction/parallaction.cpp')
-rw-r--r-- | engines/parallaction/parallaction.cpp | 30 |
1 files changed, 1 insertions, 29 deletions
diff --git a/engines/parallaction/parallaction.cpp b/engines/parallaction/parallaction.cpp index a7993412b3..17b2c70687 100644 --- a/engines/parallaction/parallaction.cpp +++ b/engines/parallaction/parallaction.cpp @@ -89,6 +89,7 @@ Parallaction::Parallaction(OSystem *syst, const PARALLACTIONGameDescription *gam Parallaction::~Parallaction() { delete _debugger; + delete _locationParser; delete _globalTable; delete _callableNames; @@ -588,35 +589,6 @@ void Parallaction::resumeJobs() { return; } - -void Parallaction::pushParserTables(OpcodeSet *opcodes, Table *statements) { - _opcodes.push(_currentOpcodes); - _statements.push(_currentStatements); - - _currentOpcodes = opcodes; - _currentStatements = statements; -} - -void Parallaction::popParserTables() { - assert(_opcodes.size() > 0); - - _currentOpcodes = _opcodes.pop(); - _currentStatements = _statements.pop(); -} - -void Parallaction::parseStatement() { - assert(_currentOpcodes != 0); - - _lookup = _currentStatements->lookup(_tokens[0]); - - debugC(9, kDebugParser, "parseStatement: %s (lookup = %i)", _tokens[0], _lookup); - - (*(*_currentOpcodes)[_lookup])(); -} - - - - AnimationPtr Parallaction::findAnimation(const char *name) { for (AnimationList::iterator it = _animations.begin(); it != _animations.end(); it++) |