Fix/bg graphic issue (#136)

This commit is contained in:
cawtds 2026-03-25 18:17:46 +01:00 committed by GitHub
parent d6e919f7f6
commit 68ceb570d5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1084,16 +1084,8 @@ void MoveBattlerSpriteToBG(enum BattlerId battler, bool8 toBG_2, bool8 setSprite
{
enum BattlerPosition battlerPosition;
if (IsContest() == TRUE)
{
RequestDma3Fill(0, (void *)(BG_SCREEN_ADDR(16)), 0x2000, 1);
RequestDma3Fill(0xFF, (void *)(BG_SCREEN_ADDR(30)), 0x1000, 0);
}
else
{
RequestDma3Fill(0, (void *)(BG_SCREEN_ADDR(8)), 0x2000, DMA3_32BIT);
RequestDma3Fill(0xFF, (void *)(BG_SCREEN_ADDR(28)), 0x1000, DMA3_16BIT);
}
RequestDma3Fill(0, (void *)(BG_SCREEN_ADDR(8)), 0x2000, DMA3_32BIT);
RequestDma3Fill(0, (void *)(BG_SCREEN_ADDR(28)), 0x1000, DMA3_16BIT);
GetBattleAnimBg1Data(&animBg);
CpuFill16(0, animBg.bgTiles, 0x1000);