diff options
| author | theo3 <arisstephenson2@gmail.com> | 2022-03-28 19:51:32 -0700 |
|---|---|---|
| committer | theo3 <arisstephenson2@gmail.com> | 2022-03-28 20:10:22 -0700 |
| commit | 92240d43147dd36ed879ce1084f7ca6e35f1db96 (patch) | |
| tree | 78a3119e1cd63d4f3333a3cade6cc622cdcb6db1 /src/script.c | |
| parent | 755571834d4fc0e21fdd45b065728c87574a3a07 (diff) | |
name remaining entity fields
Diffstat (limited to 'src/script.c')
| -rw-r--r-- | src/script.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/script.c b/src/script.c index 14f94526..64692f23 100644 --- a/src/script.c +++ b/src/script.c @@ -230,7 +230,7 @@ UNUSED ScriptExecutionContext* StartCutscene2(Entity* entity, u16* script) { context = CreateScriptExecutionContext(); if (context) { entity->flags |= ENT_SCRIPTED; - *(ScriptExecutionContext**)&entity->field_0x3c = context; + *(ScriptExecutionContext**)&entity->collisionFlags = context; context->scriptInstructionPointer = script; } return context; @@ -321,7 +321,7 @@ void sub_0807DD50(Entity* entity) { } void sub_0807DD64(Entity* entity) { - entity->field_0xf = entity->animationState; + entity->subtimer = entity->animationState; entity->animIndex = 0xff; entity->field_0x80.HWORD = 0; entity->field_0x82.HWORD = 0; @@ -374,9 +374,9 @@ void HandleEntity0x82Actions(Entity* entity) { break; case 1 << 3: if (gRoomTransition.frameCount % 4 == 0) { - temp = (entity->field_0xf + 2) & 7; + temp = (entity->subtimer + 2) & 7; entity->animationState = temp; - entity->field_0xf = temp; + entity->subtimer = temp; } break; case 1 << 4: @@ -403,14 +403,14 @@ void sub_0807DE80(Entity* entity) { if (entity->field_0x82.HWORD & 1) { u32 t1, t2; t1 = local2 & 0xfc; - t2 = entity->field_0xf >> 1; + t2 = entity->subtimer >> 1; local2 = t1 + t2; } else { u32 t1, t2; t1 = local2 & 0xfc; t2 = entity->animationState >> 1; local2 = t1 + t2; - entity->field_0xf = entity->animationState; + entity->subtimer = entity->animationState; } } if (local2 != entity->animIndex) { @@ -1664,7 +1664,7 @@ void WaitForPlayerAnim(Entity* entity, ScriptExecutionContext* context) { void DeleteHitbox(Entity* entity, ScriptExecutionContext* context) { entity->hitbox = NULL; - entity->field_0x17 &= ~1; + entity->followerFlag &= ~1; } void SetPriorityMessage(Entity* entity, ScriptExecutionContext* context) { @@ -2095,7 +2095,7 @@ void sub_0807FB64(Entity* entity, ScriptExecutionContext* context) { void sub_0807FB74(Entity* entity, ScriptExecutionContext* context) { gPlayerState.swim_state = 0; - gPlayerEntity.field_0x3c &= ~4; + gPlayerEntity.collisionFlags &= ~4; } void sub_0807FB94(Entity* entity, ScriptExecutionContext* context) { |
