CPlayer: Fix function call mismatch within SidewaysDashAllowed()

This function actually calls GetPressInput() here, not
GetDigitalInput().
This commit is contained in:
Lioncash 2020-01-29 03:18:33 -05:00
parent 7b89a165bf
commit 264c897bb5
1 changed files with 1 additions and 1 deletions

View File

@ -5068,7 +5068,7 @@ bool CPlayer::SidewaysDashAllowed(float strafeInput, float forwardInput, const C
return true;
} else {
if (x304_orbitState != EPlayerOrbitState::NoOrbit && g_tweakPlayer->GetDashEnabled() &&
ControlMapper::GetDigitalInput(ControlMapper::ECommands::JumpOrBoost, input) &&
ControlMapper::GetPressInput(ControlMapper::ECommands::JumpOrBoost, input) &&
x288_startingJumpTimeout > 0.f && std::fabs(strafeInput) >= std::fabs(forwardInput) &&
std::fabs(strafeInput) > 0.01f) {
float threshold = std::sqrt(strafeInput * strafeInput + forwardInput * forwardInput) /