From 3928c52c0ee2a930431a807d0b4262440ab75725 Mon Sep 17 00:00:00 2001 From: Ľubomír Remák Date: Wed, 21 Mar 2018 22:49:36 +0100 Subject: MUTATIONOFJB: Add support for CAMEFROM command. --- engines/mutationofjb/commands/conditionalcommand.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'engines/mutationofjb/commands/conditionalcommand.h') diff --git a/engines/mutationofjb/commands/conditionalcommand.h b/engines/mutationofjb/commands/conditionalcommand.h index d64efbf180..ea1a66afb0 100644 --- a/engines/mutationofjb/commands/conditionalcommand.h +++ b/engines/mutationofjb/commands/conditionalcommand.h @@ -30,11 +30,13 @@ namespace MutationOfJB { class ConditionalCommandParser : public CommandParser { public: - ConditionalCommandParser() : _lastTag(0) {} + ConditionalCommandParser(bool firstHash = false) : _lastTag(0), _firstHash(firstHash) {} virtual void transition(ScriptParseContext &parseCtx, Command *oldCommand, Command *newCommand, CommandParser *newCommandParser); virtual void finish(ScriptParseContext &parseCtx) override; protected: char _lastTag; +private: + bool _firstHash; }; class ConditionalCommand : public Command { -- cgit v1.2.3