mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-07-05 07:55:52 +00:00
CPlayer: Add missing return within UpdateOrbitModeTimer()
Previously, any call to this function would always reset the timer to 0.0, rather than potentially decrement it. GM8E v0 always returns within the conditional.
This commit is contained in:
parent
4ae3bca176
commit
79c409c5e0
@ -4230,8 +4230,10 @@ void CPlayer::UpdateOrbitPreventionTimer(float dt) {
|
||||
}
|
||||
|
||||
void CPlayer::UpdateOrbitModeTimer(float dt) {
|
||||
if (x304_orbitState == EPlayerOrbitState::NoOrbit && x32c_orbitModeTimer > 0.f)
|
||||
if (x304_orbitState == EPlayerOrbitState::NoOrbit && x32c_orbitModeTimer > 0.f) {
|
||||
x32c_orbitModeTimer -= dt;
|
||||
return;
|
||||
}
|
||||
x32c_orbitModeTimer = 0.f;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user