port sub_8181C2C fakematching fix
This commit is contained in:
parent
83846b913a
commit
9d067dfe0d
1 changed files with 2 additions and 6 deletions
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue