Skip to content

Commit

Permalink
UB fix ClockwiseWipe_TopRight
Browse files Browse the repository at this point in the history
  • Loading branch information
cawtds committed Jun 25, 2024
1 parent c6a2f50 commit e6eb717
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 e6eb717

Please sign in to comment.