Skip to content

Commit

Permalink
Merge pull request #655 from MokhaLeee/fixx
Browse files Browse the repository at this point in the history
fix #654
  • Loading branch information
RevoSucks authored Aug 7, 2024
2 parents 10543f5 + 50dd778 commit 26d2085
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/banim-ekrmainmini.c
Original file line number Diff line number Diff line change
Expand Up @@ -864,12 +864,12 @@ void sub_805AE58(struct BanimUnkStructComm * buf)
int offsetA = 0;
int offsetB = 0;

u16 * tmA = gUnknown_085B9D6C[buf->unk0C * 2 + 0];
u16 * tmB = gUnknown_085B9D6C[buf->unk0C * 2 + 1];
u16 * tmA = gUnknown_085B9D6C[buf->distance * 2 + 0];
u16 * tmB = gUnknown_085B9D6C[buf->distance * 2 + 1];

sub_80559B0(0);

switch (buf->unk0C)
switch (buf->distance)
{
case 0:
case 4:
Expand Down Expand Up @@ -912,13 +912,13 @@ void sub_805AE58(struct BanimUnkStructComm * buf)

case 3:
default:
if (buf->unk00 != -1)
if (buf->terrain_l != -1)
{
offsetA = 39;
offsetB = 3;
}

if (buf->unk06 != -1)
if (buf->terrain_r != -1)
{
offsetA = 3;
offsetB = 42;
Expand All @@ -931,8 +931,8 @@ void sub_805AE58(struct BanimUnkStructComm * buf)

tmp = 0x35A;

EfxTmCpyExt(tmA, -1, gTmA_Banim + 0x35A + offsetA, 0x42, 0xf, 5, buf->unk02, buf->unk04);
EfxTmCpyExt(tmB, -1, gTmA_Banim + 0x35A + offsetB, 0x42, 0xf, 5, buf->unk08, buf->unk0A);
EfxTmCpyExt(tmA, -1, gTmA_Banim + 0x35A + offsetA, 0x42, 0xf, 5, buf->pal_l, buf->chr_l);
EfxTmCpyExt(tmB, -1, gTmA_Banim + 0x35A + offsetB, 0x42, 0xf, 5, buf->pal_r, buf->chr_r);

EfxTmCpyExt((gTmA_Banim + tmp + offsetC) - 0x2B5, 0x42, gBG2TilemapBuffer, 0x20, 0x20, 0x14, -1, -1);

Expand Down

0 comments on commit 26d2085

Please sign in to comment.