Merge pull request #134 from lioncash/function-error

CPlayer: Fix function call mismatch within SidewaysDashAllowed()
This commit is contained in:
Phillip Stephens 2020-01-30 20:11:49 -08:00 committed by GitHub
commit d7f475166f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) /