Skip to content

Commit

Permalink
Merge pull request #662 from cawtds/ub-fix-battle-transition
Browse files Browse the repository at this point in the history
UB fix in battle_transition.c
  • Loading branch information
GriffinRichards authored Aug 29, 2024
2 parents caf8c6b + e6eb717 commit 539ed36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/battle_transition.c
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,11 @@ static bool8 ClockwiseWipe_Init(struct Task *task)
static bool8 ClockwiseWipe_TopRight(struct Task *task)
{
sTransitionData->vblankDma = FALSE;
#ifdef UBFIX
InitBlackWipe(sTransitionData->data, DISPLAY_WIDTH / 2, DISPLAY_HEIGHT / 2, sTransitionData->tWipeEndX, 0, 1, 1);
#else
InitBlackWipe(sTransitionData->data, DISPLAY_WIDTH / 2, DISPLAY_HEIGHT / 2, sTransitionData->tWipeEndX, -1, 1, 1);
#endif
do
{
gScanlineEffectRegBuffers[0][sTransitionData->tWipeCurrY] = WIN_RANGE(DISPLAY_WIDTH / 2, sTransitionData->tWipeCurrX + 1);
Expand Down

0 comments on commit 539ed36

Please sign in to comment.