From eeaeb81433bfef0f7eef25bcf0801a1d34032fcd Mon Sep 17 00:00:00 2001 From: Mauro Junior <45118493+jetrotal@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:29:15 -0300 Subject: [PATCH] FlashEvent - Maniac Patch Parameters Supporting usage of variables when game uses maniac patch and parameters size is bigger than 7. Update game_interpreter_map.cpp --- src/game_interpreter_map.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/game_interpreter_map.cpp b/src/game_interpreter_map.cpp index b74a1a970f..5a1034e8f2 100644 --- a/src/game_interpreter_map.cpp +++ b/src/game_interpreter_map.cpp @@ -712,11 +712,11 @@ bool Game_Interpreter_Map::CommandShowBattleAnimation(lcf::rpg::EventCommand con } bool Game_Interpreter_Map::CommandFlashSprite(lcf::rpg::EventCommand const& com) { // code 11320 - int event_id = com.parameters[0]; - int r = com.parameters[1]; - int g = com.parameters[2]; - int b = com.parameters[3]; - int p = com.parameters[4]; + int event_id = ValueOrVariableBitfield(com, 7, 0, 0); + int r = ValueOrVariableBitfield(com, 7, 1, 1); + int g = ValueOrVariableBitfield(com, 7, 2, 2); + int b = ValueOrVariableBitfield(com, 7, 3, 3); + int p = ValueOrVariableBitfield(com, 7, 4, 4); int tenths = com.parameters[5]; bool wait = com.parameters[6] > 0;