Skip to content

Commit

Permalink
Conditional Branch: Support Maniac Patch Expressions
Browse files Browse the repository at this point in the history
(Fortunately the hard part of this was already solved)
  • Loading branch information
Ghabry committed Nov 2, 2023
1 parent a03f508 commit bea74f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/game_interpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3655,9 +3655,9 @@ bool Game_Interpreter::CommandConditionalBranch(lcf::rpg::EventCommand const& co
}
break;
case 16:
// Maniac: Expression (TODO)
// see https://jetrotal.github.io/CSA/#Conditional%20Branch
[[fallthrough]];
// Maniac: Expression
result = ManiacPatch::ParseExpression(MakeSpan(com.parameters).subspan(6), *this);
break;
default:
Output::Warning("ConditionalBranch: Branch {} unsupported", com.parameters[0]);
}
Expand Down

0 comments on commit bea74f3

Please sign in to comment.