From 75223bab243e67eb7233edf32ffd8a15a94c6b34 Mon Sep 17 00:00:00 2001 From: theo3 Date: Wed, 15 Jul 2020 20:49:59 -0700 Subject: entity->spriteTileSize, entity->spriteIndex --- src/code_08077DF4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/code_08077DF4.c') diff --git a/src/code_08077DF4.c b/src/code_08077DF4.c index 467cbe35..3897a273 100644 --- a/src/code_08077DF4.c +++ b/src/code_08077DF4.c @@ -18,7 +18,7 @@ void sub_08077DF4(Entity *ent, u32 arg1) if ((arg1 & 0xff) > 0xb8) { arg1 += (ent->entityType).form >> 1; } - gLinkEntity.spriteTileSize = (short)(arg1 >> 8); + gLinkEntity.spriteIndex = (short)(arg1 >> 8); InitAnimationForceUpdate(&gLinkEntity, (u8)arg1); sub_08077E54(ent); } @@ -38,7 +38,7 @@ void sub_08077E3C(Entity *ent) void sub_08077E54(Entity *ent) { ent->action = gLinkEntity.animIndex; - *(u8 *)&ent->spriteTileSize = gLinkEntity.frameIndex; + *(u8 *)&ent->spriteIndex = gLinkEntity.frameIndex; ent->previousActionFlag = gLinkEntity.frameDuration; ent->actionDelay = gLinkEntity.frames.all; } -- cgit v1.2.3