Skip to content

Commit ec1bef5

Browse files
Clean up Tails Gauge fix (#127)
* Restore missing check + add missing whitespace * Remove minor comment
1 parent 109a9f1 commit ec1bef5

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

MarathonRecomp/patches/player_patches.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ PPC_FUNC(sub_8221A7D8)
4646
PPC_FUNC_IMPL(__imp__sub_821E8C48);
4747
PPC_FUNC(sub_821E8C48)
4848
{
49+
if (!Config::TailsGauge)
50+
{
51+
__imp__sub_821E8C48(ctx, base);
52+
return;
53+
}
54+
4955
auto pPlayer = (Sonicteam::Player::Object*)(base + ctx.r4.u32);
5056
if (pPlayer->m_PlayerLua == "player/tails.lua")
5157
{
@@ -61,6 +67,7 @@ PPC_FUNC(sub_821E8C48)
6167

6268
pPlayer->m_spGauge = *spSonicGauge.get();
6369
}
70+
6471
__imp__sub_821E8C48(ctx, base);
6572
}
6673

0 commit comments

Comments
 (0)