diff options
| author | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2025-05-20 17:41:37 -0600 |
|---|---|---|
| committer | MegaMech <7255464+MegaMech@users.noreply.github.com> | 2025-05-20 17:41:37 -0600 |
| commit | c10361ea799c5e4ad3c00ebfe0c4d5aba2670dc1 (patch) | |
| tree | 4f62f97dccc9a2cf5a8a1c0ec2d8bcd3ad1c8f78 /src/actors/falling_rock/render.inc.c | |
| parent | a364421b093fde425e4d8b11a8629b39ddb68288 (diff) | |
| parent | 02d6c6fc99301ec282189285c44101a78804a063 (diff) | |
Merge branch 'transformfuncsforint' of https://github.com/HarbourMasters/SpaghettiKart into transformfuncsforint
Diffstat (limited to 'src/actors/falling_rock/render.inc.c')
| -rw-r--r-- | src/actors/falling_rock/render.inc.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/actors/falling_rock/render.inc.c b/src/actors/falling_rock/render.inc.c index 9d50fd41c..d0d5aa0dc 100644 --- a/src/actors/falling_rock/render.inc.c +++ b/src/actors/falling_rock/render.inc.c @@ -17,9 +17,6 @@ void render_actor_falling_rock(Camera* camera, struct FallingRock* rock) { f32 height; UNUSED s32 pad[4]; - // @port: Tag the transform. - FrameInterpolation_RecordOpenChild("rock", TAG_ITEM_ADDR(rock)); //Not working properly just yet - if (rock->respawnTimer != 0) { return; } @@ -54,8 +51,13 @@ void render_actor_falling_rock(Camera* camera, struct FallingRock* rock) { } } + // @port: Tag the transform. + FrameInterpolation_RecordOpenChild("rock", (uintptr_t) rock); + mtxf_pos_rotation_xyz(mtx, rock->pos, rock->rot); if (render_set_position(mtx, 0) == 0) { + // @port Pop the transform id. + FrameInterpolation_RecordCloseChild(); return; } gSPDisplayList(gDisplayListHead++, d_course_choco_mountain_dl_falling_rock); |
