From 79c409c5e06df325e1a7f20f119c7de92400da4a Mon Sep 17 00:00:00 2001 From: Lioncash Date: Tue, 25 Feb 2020 02:16:32 -0500 Subject: [PATCH] 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. --- Runtime/World/CPlayer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Runtime/World/CPlayer.cpp b/Runtime/World/CPlayer.cpp index bdb18ab16..30f5c9593 100644 --- a/Runtime/World/CPlayer.cpp +++ b/Runtime/World/CPlayer.cpp @@ -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; }