aboutsummaryrefslogtreecommitdiff
path: root/engines/mutationofjb/debug.cpp
diff options
context:
space:
mode:
authorĽubomír Remák2018-03-22 20:56:42 +0100
committerEugene Sandulenko2018-08-25 23:12:01 +0200
commit938f222d4857b45e0f1f7e4726040ab0bf1d9b67 (patch)
tree5c15540224645ca541ad6e22b9ce786dbddc7be9 /engines/mutationofjb/debug.cpp
parente1d173ed7541f9da79f60a65d974da3ebbb29e7a (diff)
downloadscummvm-rg350-938f222d4857b45e0f1f7e4726040ab0bf1d9b67.tar.gz
scummvm-rg350-938f222d4857b45e0f1f7e4726040ab0bf1d9b67.tar.bz2
scummvm-rg350-938f222d4857b45e0f1f7e4726040ab0bf1d9b67.zip
MUTATIONOFJB: Add support for calling macros.
Diffstat (limited to 'engines/mutationofjb/debug.cpp')
-rw-r--r--engines/mutationofjb/debug.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mutationofjb/debug.cpp b/engines/mutationofjb/debug.cpp
index 867a0210a6..b4c2e773a8 100644
--- a/engines/mutationofjb/debug.cpp
+++ b/engines/mutationofjb/debug.cpp
@@ -27,6 +27,7 @@
#include "mutationofjb/commands/command.h"
#include "mutationofjb/commands/seqcommand.h"
#include "mutationofjb/commands/conditionalcommand.h"
+#include "mutationofjb/commands/callmacrocommand.h"
#include "common/debug-channels.h"
#include "common/translation.h"
#include "common/scummsys.h"
@@ -129,6 +130,8 @@ void Console::showCommands(Command *command, int indentLevel) {
debugPrintf("ELSE\n");
showCommands(condCmd->getFalseCommand(), indentLevel + 1);
command = nullptr;
+ } else if (CallMacroCommand* const callMacroCmd = dynamic_cast<CallMacroCommand *>(command)) {
+ command = callMacroCmd->getReturnCommand();
} else {
command = nullptr;
}