diff options
| author | sitton76 <58642183+sitton76@users.noreply.github.com> | 2025-05-22 00:16:21 -0500 |
|---|---|---|
| committer | sitton76 <58642183+sitton76@users.noreply.github.com> | 2025-05-22 00:16:21 -0500 |
| commit | f6d1064a7a5395eaca40f08d099d8cc07badf02c (patch) | |
| tree | 59cce0985ddaf4394f13d0a5a7688d08cdd99fb4 | |
| parent | 98d5844f9190d80a935182e86645052e4cf9eebe (diff) | |
Tagged battle balloons
| -rw-r--r-- | src/code_80057C60.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/code_80057C60.c b/src/code_80057C60.c index 0a8e22749..50622a10a 100644 --- a/src/code_80057C60.c +++ b/src/code_80057C60.c @@ -6101,6 +6101,10 @@ void render_battle_balloon(Player* player, s8 arg1, s16 arg2, s8 arg3) { sp12C[1] = player->unk_048[arg3]; sp12C[2] = D_8018D7D0[arg1][arg2] - (D_8018D860[arg1][arg2] * coss(temp_t1)) - ((D_8018D890[arg1][arg2] * 8) * sins(temp_t1)); + + // @port: Tag the transform. + FrameInterpolation_RecordOpenChild((uintptr_t) player, arg1 | arg2 << 16); + mtxf_translate_rotate(mtx, sp134, sp12C); mtxf_scale(mtx, var_f20); // convert_to_fixed_point_matrix(&gGfxPool->mtxEffect[gMatrixEffectCount], sp140); @@ -6130,6 +6134,10 @@ void render_battle_balloon(Player* player, s8 arg1, s16 arg2, s8 arg3) { gSPVertex(gDisplayListHead++, gBalloonVertexPlane2, 4, 0); gSPDisplayList(gDisplayListHead++, common_square_plain_render); gSPTexture(gDisplayListHead++, 0x0001, 0x0001, 0, G_TX_RENDERTILE, G_OFF); + + // @port Pop the transform id. + FrameInterpolation_RecordCloseChild(); + gMatrixEffectCount++; } |
