port sub_8181C2C fakematching fix

This commit is contained in:
Kurausukun 2020-10-26 00:06:19 -04:00
parent 83846b913a
commit 9d067dfe0d

View File

@ -2884,13 +2884,9 @@ static void sub_8181C2C(struct Sprite *sprite)
}
else
{
#ifndef NONMATCHING
register s32 var asm("r4") = sUnknown_03001240[sprite->data[0]].field_8;
#else
s32 var = sUnknown_03001240[sprite->data[0]].field_8;
#endif
s32 var = sUnknown_03001240[sprite->data[0]].field_8;
sprite->pos2.x = (var << 3) * (counter % 128) / 128 - (sUnknown_03001240[sprite->data[0]].field_8 * 8);
sprite->pos2.x = var * ((counter % 128) * 8) / 128 + 8 * -var;
sprite->pos2.y = -(Sin(counter % 128, 8));
}