Skip to content

Commit 4ac69ce

Browse files
committed
fixing battle parallel event calls after merge resolution
1 parent e575a1d commit 4ac69ce

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/game_interpreter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ inline void Game_Interpreter::Push(Game_Event* ev, const lcf::rpg::EventPage* pa
411411
template<InterpreterExecutionType type_ex>
412412
inline void Game_Interpreter::Push(Game_CommonEvent* ev) {
413413
static_assert(type_ex == InterpreterExecutionType::AutoStart || type_ex == InterpreterExecutionType::Parallel
414+
|| type_ex == InterpreterExecutionType::BattleStart || type_ex == InterpreterExecutionType::BattleParallel
414415
|| type_ex == InterpreterExecutionType::Call || type_ex == InterpreterExecutionType::DeathHandler
415416
|| type_ex == InterpreterExecutionType::DebugCall || type_ex == InterpreterExecutionType::ManiacHook, "Unexpected ExecutionType for CommonEvent"
416417
);

src/scene_battle_rpg2k3.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -979,7 +979,7 @@ void Scene_Battle_Rpg2k3::vUpdate() {
979979
if (!parallel_interpreter.IsRunning()) {
980980
for (auto common_event : battle_parallel_events)
981981
{
982-
parallel_interpreter.Push<InterpreterExecutionType::Parallel>(common_event);
982+
parallel_interpreter.Push<InterpreterExecutionType::BattleParallel>(common_event);
983983
}
984984
}
985985
}
@@ -1132,7 +1132,7 @@ void Scene_Battle_Rpg2k3::CallBattleBeginCommonEvents() {
11321132
if (data_common_event.trigger == data_common_event.Trigger_maniac_battle_start) {
11331133
Game_CommonEvent* common_event = lcf::ReaderUtil::GetElement(Game_Map::GetCommonEvents(), data_common_event.ID);
11341134

1135-
Game_Battle::GetInterpreterBattle().Push<InterpreterExecutionType::Parallel>(common_event);
1135+
Game_Battle::GetInterpreterBattle().Push<InterpreterExecutionType::BattleParallel>(common_event);
11361136
}
11371137
else if (data_common_event.trigger == data_common_event.Trigger_maniac_battle_parallel) {
11381138
Game_CommonEvent* common_event = lcf::ReaderUtil::GetElement(Game_Map::GetCommonEvents(), data_common_event.ID);

0 commit comments

Comments
 (0)