diff options
| author | Caroline Madsen <69010899+randomsalience@users.noreply.github.com> | 2024-11-03 13:39:41 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-03 20:39:41 +0200 |
| commit | 63abf9f6d2d52ed9d1309473bf4dc1123ca1ce5b (patch) | |
| tree | 873881597f156630960b2f3a959a8fade0e0e2e9 /src/JSystem/JParticle/JPAKeyBlock.cpp | |
| parent | 499d4dfe745b9371f29649b3f2c461c350143e05 (diff) | |
JParticle mostly done (#2235)
Diffstat (limited to 'src/JSystem/JParticle/JPAKeyBlock.cpp')
| -rw-r--r-- | src/JSystem/JParticle/JPAKeyBlock.cpp | 24 |
1 files changed, 3 insertions, 21 deletions
diff --git a/src/JSystem/JParticle/JPAKeyBlock.cpp b/src/JSystem/JParticle/JPAKeyBlock.cpp index 01ea3bf465..fdb1e8e6c5 100644 --- a/src/JSystem/JParticle/JPAKeyBlock.cpp +++ b/src/JSystem/JParticle/JPAKeyBlock.cpp @@ -6,22 +6,6 @@ #include "JSystem/JParticle/JPAKeyBlock.h" #include "JSystem/JParticle/JPAMath.h" -// -// Types: -// - -// -// Forward References: -// - -// -// External References: -// - -// -// Declarations: -// - /* 8027D730-8027D740 278070 0010+00 0/0 1/1 0/0 .text __ct__11JPAKeyBlockFPCUc */ JPAKeyBlock::JPAKeyBlock(const u8* data) : mDataStart(data) @@ -29,15 +13,13 @@ JPAKeyBlock::JPAKeyBlock(const u8* data) { } -/* ############################################################################################## */ - /* 8027D740-8027D7D4 278080 0094+00 0/0 1/1 0/0 .text calc__11JPAKeyBlockFf */ -void JPAKeyBlock::calc(float p1) { +f32 JPAKeyBlock::calc(float p1) { if (mDataStart[0xB] != '\0') { int v1 = (int)field_0x4[(mDataStart[9] - 1) * 4] + 1; // p1 -= (v1 * ((int)p1 / v1)); int v2 = ((int)p1 / v1); p1 = p1 - (v2 * v1); } - JPACalcKeyAnmValue(p1, mDataStart[9], field_0x4); -}
\ No newline at end of file + return JPACalcKeyAnmValue(p1, mDataStart[9], field_0x4); +} |
