diff options
| author | theo3 <arisstephenson2@gmail.com> | 2020-07-15 20:49:59 -0700 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2020-07-15 20:49:59 -0700 |
| commit | 75223bab243e67eb7233edf32ffd8a15a94c6b34 (patch) | |
| tree | a91f9e616335f1d5691a215f364a90be152c1257 /src/code_08077DF4.c | |
| parent | d49545317a9b0b7707d439cf5657836e7abc94ed (diff) | |
entity->spriteTileSize, entity->spriteIndex
Diffstat (limited to 'src/code_08077DF4.c')
| -rw-r--r-- | src/code_08077DF4.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } |
