mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-18 01:14:19 +01:00
port sub_8181C2C fakematching fix
This commit is contained in:
parent
83846b913a
commit
9d067dfe0d
@ -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…
x
Reference in New Issue
Block a user