diff options
| author | Jcw87 <Jcw87@users.noreply.github.com> | 2026-02-07 04:43:51 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-02-07 04:43:51 -0800 |
| commit | 57cea18076aaf37de164b2ddeafdda4c42bdda80 (patch) | |
| tree | df4573e1c7058cde2d255adf909899c9d337b332 /src/JSystem/JParticle/JPAKeyBlock.cpp | |
| parent | 434550355b33a95a6d715e820dfc380404105af3 (diff) | |
JParticle debug (#3090)
Diffstat (limited to 'src/JSystem/JParticle/JPAKeyBlock.cpp')
| -rw-r--r-- | src/JSystem/JParticle/JPAKeyBlock.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/JSystem/JParticle/JPAKeyBlock.cpp b/src/JSystem/JParticle/JPAKeyBlock.cpp index c574618eee..82b7d81d56 100644 --- a/src/JSystem/JParticle/JPAKeyBlock.cpp +++ b/src/JSystem/JParticle/JPAKeyBlock.cpp @@ -10,11 +10,11 @@ JPAKeyBlock::JPAKeyBlock(const u8* data) } f32 JPAKeyBlock::calc(float p1) { - if (mDataStart[0xB] != '\0') { - int v1 = (int)field_0x4[(mDataStart[9] - 1) * 4] + 1; + if (isLoop()) { + int v1 = (int)getKeyData()[(getKeyNum() - 1) * 4] + 1; // p1 -= (v1 * ((int)p1 / v1)); int v2 = ((int)p1 / v1); p1 = p1 - (v2 * v1); } - return JPACalcKeyAnmValue(p1, mDataStart[9], field_0x4); + return JPACalcKeyAnmValue(p1, getKeyNum(), getKeyData()); } |
