Skip to content

Commit ea2f6c0

Browse files
authored
Merge pull request #3329 from EasyRPG-NewFeatures/maniacs-FlashEvent
FlashEvent - Maniac Patch Parameters
2 parents d6ff81f + eeaeb81 commit ea2f6c0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/game_interpreter_map.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -712,11 +712,11 @@ bool Game_Interpreter_Map::CommandShowBattleAnimation(lcf::rpg::EventCommand con
712712
}
713713

714714
bool Game_Interpreter_Map::CommandFlashSprite(lcf::rpg::EventCommand const& com) { // code 11320
715-
int event_id = com.parameters[0];
716-
int r = com.parameters[1];
717-
int g = com.parameters[2];
718-
int b = com.parameters[3];
719-
int p = com.parameters[4];
715+
int event_id = ValueOrVariableBitfield(com, 7, 0, 0);
716+
int r = ValueOrVariableBitfield(com, 7, 1, 1);
717+
int g = ValueOrVariableBitfield(com, 7, 2, 2);
718+
int b = ValueOrVariableBitfield(com, 7, 3, 3);
719+
int p = ValueOrVariableBitfield(com, 7, 4, 4);
720720

721721
int tenths = com.parameters[5];
722722
bool wait = com.parameters[6] > 0;

0 commit comments

Comments
 (0)