Skip to content

Commit

Permalink
Check reject road in calcAutoDrift
Browse files Browse the repository at this point in the history
  • Loading branch information
malleoz authored and vabold committed Feb 19, 2025
1 parent e28d55c commit d243345
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/game/kart/KartMove.cc
Original file line number Diff line number Diff line change
Expand Up @@ -872,7 +872,7 @@ void KartMove::calcAutoDrift() {
return;
}

if (canStartDrift() && !state()->isOverZipper() && !state()->isHalfPipeRamp() &&
if (canStartDrift() && !state()->isOverZipper() && !state()->isRejectRoadTrigger() &&
!state()->isWheelie() && EGG::Mathf::abs(state()->stickX()) > 0.85f) {
m_autoDriftStartFrameCounter =
std::min<s16>(AUTO_DRIFT_START_DELAY, m_autoDriftStartFrameCounter + 1);
Expand Down

0 comments on commit d243345

Please sign in to comment.