diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2025-05-23 16:49:17 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-23 16:49:17 -0600 |
| commit | c2ddd2c25626b2797b9f730d77118f0e96131108 (patch) | |
| tree | be651a89fbe6f27bc6400d4f81ecab30cf6d967c /src/engine/actors/Finishline.cpp | |
| parent | 98d55ab603e503c03456013b1bda0072d3e8725e (diff) | |
| parent | 9363e3d77631b1028a765c075a00293bd20c9ba7 (diff) | |
Merge branch 'transformfuncsforint' into transformsharedfromptr
Diffstat (limited to 'src/engine/actors/Finishline.cpp')
| -rw-r--r-- | src/engine/actors/Finishline.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/engine/actors/Finishline.cpp b/src/engine/actors/Finishline.cpp index 0680e60bd..fb408bd14 100644 --- a/src/engine/actors/Finishline.cpp +++ b/src/engine/actors/Finishline.cpp @@ -6,6 +6,8 @@ #include "engine/Actor.h" #include "World.h" #include "assets/common_data.h" +#include "src/port/Game.h" +#include "port/interpolation/FrameInterpolation.h" extern "C" { #include "macros.h" @@ -17,6 +19,8 @@ extern f32 gKartHopInitialVelocityTable[]; extern f32 gKartGravityTable[]; } +size_t AFinishline::_count = 0; + AFinishline::AFinishline(std::optional<FVector> pos) { Name = "Finishline"; @@ -53,6 +57,8 @@ void AFinishline::Draw(Camera *camera) { return; } + FrameInterpolation_RecordOpenChild("Finishline", _count); + mtxf_pos_rotation_xyz(mtx, Pos, Rot); maxObjectsReached = render_set_position(mtx, 0) == 0; @@ -74,6 +80,8 @@ void AFinishline::Draw(Camera *camera) { } else { gSPDisplayList(gDisplayListHead++, (Gfx*)D_0D001BD8); } + + FrameInterpolation_RecordCloseChild(); } void AFinishline::Collision(Player* player, AActor* actor) {} |
