diff options
Diffstat (limited to 'engines/mutationofjb/script.cpp')
-rw-r--r-- | engines/mutationofjb/script.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/mutationofjb/script.cpp b/engines/mutationofjb/script.cpp index 90146f64c6..d90f37e161 100644 --- a/engines/mutationofjb/script.cpp +++ b/engines/mutationofjb/script.cpp @@ -45,6 +45,7 @@ #include "mutationofjb/commands/renamecommand.h" #include "mutationofjb/commands/definestructcommand.h" #include "mutationofjb/commands/talkcommand.h" +#include "mutationofjb/commands/randomcommand.h" #include "mutationofjb/game.h" namespace MutationOfJB { @@ -71,6 +72,8 @@ static CommandParser **getParsers() { new NewRoomCommandParser, new GotoCommandParser, new LabelCommandParser, + new RandomCommandParser, + new RandomBlockStartParser, nullptr }; @@ -81,7 +84,8 @@ static CommandParser **getParsers() { ScriptParseContext::ScriptParseContext(Common::SeekableReadStream &stream) : _stream(stream), _currentCommand(nullptr), - _lastCommand(nullptr) + _lastCommand(nullptr), + _pendingRandomCommand(nullptr) {} bool ScriptParseContext::readLine(Common::String &line) { |