diff options
| author | engineer124 <47598039+engineer124@users.noreply.github.com> | 2023-11-28 22:43:36 +1100 |
|---|---|---|
| committer | Eblo <7004497+Eblo@users.noreply.github.com> | 2025-09-13 19:52:21 -0400 |
| commit | 5f78d5bf6ed133b617a615bb437eb50dcd9d8b4b (patch) | |
| tree | a053f371c075e011b7fb01e894f1a936b457048b /mm/src/code | |
| parent | 15e57a5acda4df6271a8c412e9919521e43b05d5 (diff) | |
Animation Cleanup: En_R* (#1516)
* begin R
* finish anim R
* cleanup
* small adj
* cleanup
* CS_STATE_IDLE
* CS_ID_NONE
* more cleanup
* sBssPad
* angles
* sneak in small fix
* small fix
Diffstat (limited to 'mm/src/code')
| -rw-r--r-- | mm/src/code/z_actor.c | 2 | ||||
| -rw-r--r-- | mm/src/code/z_camera.c | 2 | ||||
| -rw-r--r-- | mm/src/code/z_debug_display.c | 4 | ||||
| -rw-r--r-- | mm/src/code/z_demo.c | 4 | ||||
| -rw-r--r-- | mm/src/code/z_en_item00.c | 6 | ||||
| -rw-r--r-- | mm/src/code/z_kankyo.c | 6 |
6 files changed, 12 insertions, 12 deletions
diff --git a/mm/src/code/z_actor.c b/mm/src/code/z_actor.c index 82d43593a..8f4e45d29 100644 --- a/mm/src/code/z_actor.c +++ b/mm/src/code/z_actor.c @@ -4680,7 +4680,7 @@ void Npc_TrackPointWithLimits(Actor* actor, NpcInteractInfo* interactInfo, s16 m } temp = CLAMP(pitchTowardsTarget, minHeadPitch, (s16)(u16)maxHeadPitch); - Math_SmoothStepToS(&interactInfo->headRot.x, temp, 6, 2000, 1); + Math_SmoothStepToS(&interactInfo->headRot.x, temp, 6, 0x7D0, 1); torsoPitch = pitchTowardsTarget - interactInfo->headRot.x; diff --git a/mm/src/code/z_camera.c b/mm/src/code/z_camera.c index 2bea7fa46..663966f1d 100644 --- a/mm/src/code/z_camera.c +++ b/mm/src/code/z_camera.c @@ -7257,7 +7257,7 @@ void Camera_EarthquakeDay3(Camera* camera) { 0x1FC, // 8 Large Earthquakes between CLOCK_TIME(4, 30) to CLOCK_TIME(6, 00) }; - if ((CURRENT_DAY == 3) && (CutsceneManager_GetCurrentCsId() == -1)) { + if ((CURRENT_DAY == 3) && (CutsceneManager_GetCurrentCsId() == CS_ID_NONE)) { time = CURRENT_TIME; timeSpeedOffset = gSaveContext.save.timeSpeedOffset; diff --git a/mm/src/code/z_debug_display.c b/mm/src/code/z_debug_display.c index 3917fb97b..fd8333013 100644 --- a/mm/src/code/z_debug_display.c +++ b/mm/src/code/z_debug_display.c @@ -10,8 +10,8 @@ typedef struct { typedef void (*DebugDispObjectDrawFunc)(DebugDispObject*, void*, PlayState*); -void DebugDisplay_DrawSpriteI8(DebugDispObject*, void*, PlayState*); -void DebugDisplay_DrawPolygon(DebugDispObject*, void*, PlayState*); +void DebugDisplay_DrawSpriteI8(DebugDispObject* dispObj, void* texture, PlayState* play); +void DebugDisplay_DrawPolygon(DebugDispObject* dispObj, void* dList, PlayState* play); Gfx* DebugDisplay_PathDisplayList(GraphicsContext* gfxCtx, Path* path); DebugDispObject* DebugDisplay_Init(void) { diff --git a/mm/src/code/z_demo.c b/mm/src/code/z_demo.c index 2c81cf2cc..d85c6bb80 100644 --- a/mm/src/code/z_demo.c +++ b/mm/src/code/z_demo.c @@ -1656,7 +1656,7 @@ void Cutscene_ActorTranslateAndYawSmooth(Actor* actor, PlayState* play, s32 cueC VEC3F_LERPIMPDST(&actor->world.pos, &startPos, &endPos, lerp); - Math_SmoothStepToS(&actor->world.rot.y, Math_Vec3f_Yaw(&startPos, &endPos), 10, 1000, 1); + Math_SmoothStepToS(&actor->world.rot.y, Math_Vec3f_Yaw(&startPos, &endPos), 10, 0x3E8, 1); actor->shape.rot.y = actor->world.rot.y; } @@ -1681,7 +1681,7 @@ void Cutscene_ActorTranslateXZAndYawSmooth(Actor* actor, PlayState* play, s32 cu actor->world.pos.x = startPos.x + (endPos.x - startPos.x) * lerp; actor->world.pos.z = startPos.z + (endPos.z - startPos.z) * lerp; - Math_SmoothStepToS(&actor->world.rot.y, Math_Vec3f_Yaw(&startPos, &endPos), 10, 1000, 1); + Math_SmoothStepToS(&actor->world.rot.y, Math_Vec3f_Yaw(&startPos, &endPos), 10, 0x3E8, 1); actor->shape.rot.y = actor->world.rot.y; } diff --git a/mm/src/code/z_en_item00.c b/mm/src/code/z_en_item00.c index 01e04d93d..5d36b6e48 100644 --- a/mm/src/code/z_en_item00.c +++ b/mm/src/code/z_en_item00.c @@ -336,14 +336,14 @@ void func_800A640C(EnItem00* this, PlayState* play) { } else if ((this->actor.params >= ITEM00_SHIELD_HERO) && (this->actor.params != ITEM00_DEKU_NUTS_10) && (this->actor.params < ITEM00_BOMBS_0)) { if (this->unk152 == -1) { - if (!Math_SmoothStepToS(&this->actor.shape.rot.x, this->actor.world.rot.x - 0x4000, 2, 3000, 1500)) { + if (!Math_SmoothStepToS(&this->actor.shape.rot.x, this->actor.world.rot.x - 0x4000, 2, 0xBB8, 0x5DC)) { this->unk152 = -2; } - } else if (!Math_SmoothStepToS(&this->actor.shape.rot.x, -0x4000 - this->actor.world.rot.x, 2, 3000, 1500)) { + } else if (!Math_SmoothStepToS(&this->actor.shape.rot.x, -0x4000 - this->actor.world.rot.x, 2, 0xBB8, 0x5DC)) { this->unk152 = -1; } - Math_SmoothStepToS(&this->actor.world.rot.x, 0, 2, 2500, 500); + Math_SmoothStepToS(&this->actor.world.rot.x, 0, 2, 0x9C4, 0x1F4); } else if ((this->actor.params == ITEM00_MAP) || (this->actor.params == ITEM00_COMPASS)) { this->unk152 = -1; this->actor.shape.rot.y += 0x3C0; diff --git a/mm/src/code/z_kankyo.c b/mm/src/code/z_kankyo.c index de9eb70ff..14f558a5a 100644 --- a/mm/src/code/z_kankyo.c +++ b/mm/src/code/z_kankyo.c @@ -2520,9 +2520,9 @@ void Environment_UpdateTimeBasedSequence(PlayState* play) { s32 pad; //! FAKE: - if (!gSaveContext.sceneLayer) {} + if (gSaveContext.sceneLayer) {} - if ((play->csCtx.state == 0) && !(play->actorCtx.flags & ACTORCTX_FLAG_TELESCOPE_ON)) { + if ((play->csCtx.state == CS_STATE_IDLE) && !(play->actorCtx.flags & ACTORCTX_FLAG_TELESCOPE_ON)) { switch (play->envCtx.timeSeqState) { case TIMESEQ_DAY_BGM: break; @@ -2582,7 +2582,7 @@ void Environment_UpdateTimeBasedSequence(PlayState* play) { if ((play->envCtx.timeSeqState != TIMESEQ_REQUEST) && (((void)0, gSaveContext.save.day) == 3) && (CURRENT_TIME < CLOCK_TIME(6, 0)) && !func_800FE5D0(play) && (play->transitionTrigger == TRANS_TRIGGER_OFF) && - (play->transitionMode == TRANS_MODE_OFF) && (play->csCtx.state == 0) && + (play->transitionMode == TRANS_MODE_OFF) && (play->csCtx.state == CS_STATE_IDLE) && ((play->sceneId != SCENE_00KEIKOKU) || (((void)0, gSaveContext.sceneLayer) != 1)) && (CutsceneManager_GetCurrentCsId() == CS_ID_NONE) && (AudioSeq_GetActiveSeqId(SEQ_PLAYER_BGM_MAIN) != NA_BGM_FINAL_HOURS) && |
