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/camefromcommand.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'engines/mutationofjb/commands/camefromcommand.cpp') diff --git a/engines/mutationofjb/commands/camefromcommand.cpp b/engines/mutationofjb/commands/camefromcommand.cpp index 2c232c1ce5..0583187884 100644 --- a/engines/mutationofjb/commands/camefromcommand.cpp +++ b/engines/mutationofjb/commands/camefromcommand.cpp @@ -22,6 +22,7 @@ #include "mutationofjb/commands/camefromcommand.h" #include "mutationofjb/gamedata.h" +#include "mutationofjb/script.h" #include "common/str.h" /* @@ -44,8 +45,8 @@ bool CameFromCommandParser::parse(const Common::String &line, ScriptParseContext return true; } -Command::ExecuteResult CameFromCommand::execute(GameData &gameData) { - _cachedResult = (gameData._lastScene == _sceneId); +Command::ExecuteResult CameFromCommand::execute(ScriptExecutionContext &scriptExecCtx) { + _cachedResult = (scriptExecCtx.getGameData()._lastScene == _sceneId); return Finished; } -- cgit v1.2.3