Merge pull request #161 from lioncash/return

CPlayer: Add missing return within UpdateOrbitModeTimer()
This commit is contained in:
Luke S 2020-02-25 14:19:32 -05:00 committed by GitHub
commit 5454fc213b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) { 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; x32c_orbitModeTimer -= dt;
return;
}
x32c_orbitModeTimer = 0.f; x32c_orbitModeTimer = 0.f;
} }