diff options
| author | theo3 <arisstephenson2@gmail.com> | 2020-06-18 15:48:30 -0700 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2020-06-18 15:48:30 -0700 |
| commit | b093824bdeb32f60b100bbfaa7a834afc72aaf5a (patch) | |
| tree | a20ea30dc57d97c09a106bedc6e4284d811d4ee2 /src | |
| parent | f8ae0eaef77d3764b149a4533c6ea8df542eb329 (diff) | |
entity.h UPDATE
Diffstat (limited to 'src')
| -rw-r--r-- | src/bladeBrothers.c | 2 | ||||
| -rw-r--r-- | src/giantLeaf.c | 2 | ||||
| -rw-r--r-- | src/goron.c | 4 | ||||
| -rw-r--r-- | src/mailbox.c | 2 | ||||
| -rw-r--r-- | src/rem.c | 2 | ||||
| -rw-r--r-- | src/talon.c | 12 | ||||
| -rw-r--r-- | src/windTribeFlag.c | 4 | ||||
| -rw-r--r-- | src/windcrest.c | 2 | ||||
| -rw-r--r-- | src/zelda.c | 12 |
9 files changed, 21 insertions, 21 deletions
diff --git a/src/bladeBrothers.c b/src/bladeBrothers.c index 5d8be642..fedaef0f 100644 --- a/src/bladeBrothers.c +++ b/src/bladeBrothers.c @@ -86,7 +86,7 @@ void sub_08068A4C(Entity* this) { this->field_0xf = 0x10; } else { this->field_0xf--; - uVar1 = (u32)this->field_0x58; + uVar1 = (u32)this->animIndex; } } iVar2 = sub_0806F078(this, uVar1); diff --git a/src/giantLeaf.c b/src/giantLeaf.c index c43a20af..d34c1605 100644 --- a/src/giantLeaf.c +++ b/src/giantLeaf.c @@ -15,7 +15,7 @@ void GiantLeaf(Entity* ent) { ent->spriteSettings.b.ss0 = 1; ent->spriteOrder.b3 = 3; ent->ticks.b0 = 7; - ent->animationList = ent->entityType.form; + ent->frameIndex = ent->entityType.form; sub_0808D618(ent); } } diff --git a/src/goron.c b/src/goron.c index cacf9dfc..42124144 100644 --- a/src/goron.c +++ b/src/goron.c @@ -32,7 +32,7 @@ void sub_08069328(Entity* this) { this->animationState = action; } } - if (this->field_0x58 != this->animationState) { + if (this->animIndex != this->animationState) { InitAnimationForceUpdate(this, this->animationState); } if (this->interactType != 0) { @@ -62,7 +62,7 @@ void sub_08069428(Entity* this, s32 offsetX, bool32 createFx65); void sub_080693D0(Entity* this) { sub_0807DD94(this, 0); - if (this->field_0x58 == 8) { + if (this->animIndex == 8) { u32 var0 = this->field_0x82 & 0xF; bool32 createFx65 = ((-var0) | var0) >> 0x1F; // = !var0 diff --git a/src/mailbox.c b/src/mailbox.c index 24380832..e290f2be 100644 --- a/src/mailbox.c +++ b/src/mailbox.c @@ -33,7 +33,7 @@ void sub_08063220(Entity* this) { bVar1 = 0; } - if (this->field_0x58 != bVar1) { + if (this->animIndex != bVar1) { InitAnimationForceUpdate(this); } else { sub_08063280(this, bVar1); @@ -28,7 +28,7 @@ void sub_0806a370(Entity* this) { sub_0807DDE4(this); UpdateAnimationSingleFrame(this); sub_0806ED78(this); - if (this->field_0x58 == 0xf) { + if (this->animIndex == 0xf) { pbVar1 = &this->frames.all; if (*pbVar1 == 1) { *pbVar1 = 0; diff --git a/src/talon.c b/src/talon.c index 10cec011..5e1561ab 100644 --- a/src/talon.c +++ b/src/talon.c @@ -47,10 +47,10 @@ void sub_0806559C(Entity* this) { offset = result; } } else { - offset = this->field_0x58; + offset = this->animIndex; } - if (this->field_0x58 != offset) { + if (this->animIndex != offset) { InitializeAnimation(this, offset); } else { GetNextFrame(this); @@ -128,11 +128,11 @@ void sub_080656D4(Entity* this) { void sub_0806574C(Entity* this) { u32 j; - j = (this->field_0x58 & ~3) + sub_0806F5A4(sub_080045C4(this, &gLinkEntity)); - if (this->field_0x58 != j) { + j = (this->animIndex & ~3) + sub_0806F5A4(sub_080045C4(this, &gLinkEntity)); + if (this->animIndex != j) { InitAnimationForceUpdate(this, j); } - this->field_0x6a.HALF.LO = this->field_0x58; + this->field_0x6a.HALF.LO = this->animIndex; } void sub_08065780(Entity* this, u16* param_2) { @@ -145,7 +145,7 @@ void sub_08065780(Entity* this, u16* param_2) { void Talon_Head(Entity* this) { sub_0806FF60(this, 0, ((this->frames.all & 7) + 0xB)); - sub_0806FF60(this, 1, this->animationList); + sub_0806FF60(this, 1, this->frameIndex); sub_0806FF88(this, 1, 0); sub_0807000C(this); } diff --git a/src/windTribeFlag.c b/src/windTribeFlag.c index 6ef01fb3..b8257ff5 100644 --- a/src/windTribeFlag.c +++ b/src/windTribeFlag.c @@ -19,7 +19,7 @@ void WindTribeFlag(Entity *this) else { GetNextFrame(this); } - if (this->animTime == 0xff) { - this->animTime = (Random() & 0xf) + 0x10; + if (this->frameDuration == 0xff) { + this->frameDuration = (Random() & 0xf) + 0x10; } }
\ No newline at end of file diff --git a/src/windcrest.c b/src/windcrest.c index 38151a80..0429a658 100644 --- a/src/windcrest.c +++ b/src/windcrest.c @@ -21,7 +21,7 @@ void Windcrest(Entity *this) { if (this->action == 0) { this->action++; - this->animationList = 0; + this->frameIndex = 0; sub_0807DD64(this); } sub_0807DDAC(this, 0); diff --git a/src/zelda.c b/src/zelda.c index 57f0e034..830bbf3e 100644 --- a/src/zelda.c +++ b/src/zelda.c @@ -112,27 +112,27 @@ void sub_08066DE4(Entity* ent) { void sub_08066E08(Entity* ent) { InitAnimationForceUpdate(ent, 0x50); - ent->field_0x80 = ent->field_0x58; + ent->field_0x80 = ent->animIndex; } void sub_08066E20(Entity* ent) { InitAnimationForceUpdate(ent, 0x44); - ent->field_0x80 = ent->field_0x58; + ent->field_0x80 = ent->animIndex; } void sub_08066E38(Entity* ent) { InitAnimationForceUpdate(ent, 0x48); - ent->field_0x80 = ent->field_0x58; + ent->field_0x80 = ent->animIndex; } void sub_08066E50(Entity* ent) { InitAnimationForceUpdate(ent, 0x4C); - ent->field_0x80 = ent->field_0x58; + ent->field_0x80 = ent->animIndex; } void sub_08066E68(Entity* ent) { InitAnimationForceUpdate(ent, 0x54); - ent->field_0x80 = ent->field_0x58; + ent->field_0x80 = ent->animIndex; } void sub_08066E80(Entity* ent, u8* param_2) { @@ -175,7 +175,7 @@ void sub_08066E80(Entity* ent, u8* param_2) { return; } } - ent->field_0x80 = ent->field_0x58; + ent->field_0x80 = ent->animIndex; gUnk_02033280[6] = 0; } |
