From e1d173ed7541f9da79f60a65d974da3ebbb29e7a Mon Sep 17 00:00:00 2001 From: Ľubomír Remák Date: Thu, 22 Mar 2018 19:48:57 +0100 Subject: MUTATIONOFJB: Add changescene debug command and fix macro debug commands. --- engines/mutationofjb/commands/endblockcommand.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/mutationofjb/commands/endblockcommand.cpp') diff --git a/engines/mutationofjb/commands/endblockcommand.cpp b/engines/mutationofjb/commands/endblockcommand.cpp index 4a6e608ae7..53ea74a97b 100644 --- a/engines/mutationofjb/commands/endblockcommand.cpp +++ b/engines/mutationofjb/commands/endblockcommand.cpp @@ -167,12 +167,13 @@ void EndBlockCommandParser::finish(ScriptParseContext &) { _foundMacro = ""; } -Command::ExecuteResult EndBlockCommand::execute(GameData &) { +Command::ExecuteResult EndBlockCommand::execute(ScriptExecutionContext &scriptExecCtx) { + _nextCmd = scriptExecCtx.popReturnCommand(); return Finished; } Command *EndBlockCommand::next() const { - return nullptr; + return _nextCmd; } Common::String EndBlockCommand::debugString() const { -- cgit v1.2.3