diff options
| author | MegaMech <MegaMech@users.noreply.github.com> | 2025-12-13 11:50:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-12-13 11:50:28 -0700 |
| commit | b934e98fc34964970ab5efacb2fb7c3372ae0b1a (patch) | |
| tree | cd96e5fabec7fdcc098d0de33b3b7e2754fb6cd5 /src/engine/actors/MarioSign.cpp | |
| parent | e6acb59ef4797ce27ddc9e21982c3f4e40824b52 (diff) | |
Refactor Track Class To Instantiate On Track Load (#587)
* Initial Commit
* First compilation of Registry template
* Further changes
* wip changes
* Impl TrackBrowser and Registry Info
* Remove const from TInfo
* Prep GetWorld
* Name refactor
* Refactor gWorldInstance to GetWorld()
* wip
* Should work now
* Data menu work again
* Fix editor staying open after program close
* Rename LoadLevel to LoadTrackDataFromJson
* More changes
* Add statue
* Add search to content browser using tags
* Fix statue pos and register tags
* Fix actor loading
* Fix delete all bug which deleted cameras
* reduce some boiler plate in actor and object
* Remove unused rulesets
* Search bar for all tabs
* fix data screen
* fix actor spawning
* temp editor fix
* Clean up
* improve extra mode transformation
* fix podium crash
* Fix editor clicking
* Fix editor clicking 2
* fix extra in custom track
* Fix FI for three actors
* Fix divide by zero error
* Ids managed by Registry
* Add scary comment
---------
Co-authored-by: MegaMech <7255464+MegaMech@users.noreply.github.com>
Co-authored-by: coco875 <pereira.jannin@gmail.com>
Diffstat (limited to 'src/engine/actors/MarioSign.cpp')
| -rw-r--r-- | src/engine/actors/MarioSign.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/engine/actors/MarioSign.cpp b/src/engine/actors/MarioSign.cpp index bede4cd8b..c8d9188ff 100644 --- a/src/engine/actors/MarioSign.cpp +++ b/src/engine/actors/MarioSign.cpp @@ -2,6 +2,7 @@ #include <libultra/gbi.h> #include <assets/models/tracks/mario_raceway/mario_raceway_data.h> +#include "port/interpolation/FrameInterpolation.h" #include "CoreMath.h" extern "C" { @@ -72,6 +73,7 @@ void AMarioSign::Draw(Camera *camera) { unk = MAX(unk, 0.0f); } if (!(unk < 0.0f)) { + FrameInterpolation_RecordOpenChild("mk:mario_sign", TAG_OBJECT(this)); gSPSetGeometryMode(gDisplayListHead++, G_SHADING_SMOOTH); gSPClearGeometryMode(gDisplayListHead++, G_LIGHTING); mtxf_pos_rotation_xyz(sp40, Pos, Rot); @@ -79,5 +81,6 @@ void AMarioSign::Draw(Camera *camera) { if (render_set_position(sp40, 0) != 0) { gSPDisplayList(gDisplayListHead++, (Gfx*)d_course_mario_raceway_dl_sign); } + FrameInterpolation_RecordCloseChild(); } } |
