mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-03-06 07:27:47 +01:00
Fix field player avatar fakmatch
This commit is contained in:
parent
5dfaf22fb3
commit
7c8fb66acf
@ -821,25 +821,15 @@ void SetPlayerAvatarTransitionFlags(u16 transitionFlags)
|
||||
static void DoPlayerAvatarTransition(void)
|
||||
{
|
||||
u8 i;
|
||||
u32 flags = gPlayerAvatar.unk1;
|
||||
u8 flags = gPlayerAvatar.unk1;
|
||||
|
||||
if (flags != 0)
|
||||
{
|
||||
for (i = 0; i < 8; i++, flags >>= 1)
|
||||
{
|
||||
#ifdef NONMATCHING
|
||||
if (flags & 1)
|
||||
{
|
||||
gUnknown_084974B8[i](&gEventObjects[gPlayerAvatar.eventObjectId]);
|
||||
}
|
||||
#else
|
||||
if (flags & 1)
|
||||
{
|
||||
register void (*const *funcs)(struct EventObject *) asm("r0") = gUnknown_084974B8;
|
||||
funcs[i](&gEventObjects[gPlayerAvatar.eventObjectId]);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
gPlayerAvatar.unk1 = 0;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user