summaryrefslogtreecommitdiff
path: root/src/ghost.c
diff options
context:
space:
mode:
authorPikalaxALT <pikalaxalt@gmail.com>2021-03-16 08:24:53 -0400
committerPikalaxALT <pikalaxalt@gmail.com>2021-03-16 08:24:53 -0400
commit10f0222d280c2b30c34bd326428f1a0e50c6c570 (patch)
tree82670f9673c47a3f51f657f4ac4b86e46e07cfdb /src/ghost.c
parent14aa5bf52f5e6bfe93b41afcd0f9ccd6bb796d68 (diff)
Battle controller opponent sync labels from emerald
Diffstat (limited to 'src/ghost.c')
-rw-r--r--src/ghost.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ghost.c b/src/ghost.c
index 4aab8409f..e7b715bbc 100644
--- a/src/ghost.c
+++ b/src/ghost.c
@@ -1320,12 +1320,12 @@ static void sub_80B6BE4(u8 taskId)
break;
case 3:
sub_80752C8(&animBgData, 2);
- gMonSpritesGfxPtr->field_17C = AllocZeroed(0x2000);
- LZDecompressWram(gBattleAnimBgTilemap_ScaryFacePlayer, gMonSpritesGfxPtr->field_17C);
- sub_80730C0(animBgData.paletteId, gMonSpritesGfxPtr->field_17C, 256, 0);
- CopyToBgTilemapBufferRect_ChangePalette(animBgData.bgId, gMonSpritesGfxPtr->field_17C, 0, 0, 0x20, 0x20, 0x11);
+ gMonSpritesGfxPtr->multiUseBuffer = AllocZeroed(0x2000);
+ LZDecompressWram(gBattleAnimBgTilemap_ScaryFacePlayer, gMonSpritesGfxPtr->multiUseBuffer);
+ sub_80730C0(animBgData.paletteId, gMonSpritesGfxPtr->multiUseBuffer, 256, 0);
+ CopyToBgTilemapBufferRect_ChangePalette(animBgData.bgId, gMonSpritesGfxPtr->multiUseBuffer, 0, 0, 0x20, 0x20, 0x11);
CopyBgTilemapBufferToVram(2);
- FREE_AND_SET_NULL(gMonSpritesGfxPtr->field_17C);
+ FREE_AND_SET_NULL(gMonSpritesGfxPtr->multiUseBuffer);
break;
case 4:
++task->data[1];