Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions MarathonRecomp/patches/fps_patches.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,8 @@ PPC_FUNC(sub_8232D770)
}
while (pTarzanPoint->m_Time >= deltaTime);
}

void ObjEspSwing_DecayRateFix(PPCRegister& f0, PPCRegister& f13, PPCRegister& deltaTime)
{
f0.f64 = float(f13.f64 * pow(pow(f0.f64, 60.0), deltaTime.f64));
}
6 changes: 6 additions & 0 deletions MarathonRecompLib/config/Marathon.toml
Original file line number Diff line number Diff line change
Expand Up @@ -433,3 +433,9 @@ after_instruction = true
name = "ObjTarzan_PatchDeltaTimeArgument"
address = 0x8232D818
registers = ["f3", "r4", "r1"]

[[midasm_hook]]
name = "ObjEspSwing_DecayRateFix"
address = 0x8232A4D0
registers = ["f0", "f13", "f28"]
jump_address = 0x8232A4D4
Loading