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:
Lioncash 2020-02-25 02:16:32 -05:00
parent 4ae3bca176
commit 79c409c5e0
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}