Skip to content

Commit

Permalink
Fix super mini-turbos off-by-one error
Browse files Browse the repository at this point in the history
  • Loading branch information
vabold committed Dec 29, 2024
1 parent c2663c8 commit c74c64f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/game/kart/KartMove.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1730,7 +1730,7 @@ void KartMove::calcMtCharge() {
m_smtCharge += EXTRA_MT_CHARGE;
}

if (m_smtCharge >= MAX_SMT_CHARGE) {
if (m_smtCharge > MAX_SMT_CHARGE) {
m_smtCharge = MAX_SMT_CHARGE;
m_driftState = DriftState::ChargedSmt;
}
Expand Down Expand Up @@ -2567,7 +2567,7 @@ void KartMoveBike::calcMtCharge() {
m_mtCharge += EXTRA_MT_CHARGE;
}

if (MAX_MT_CHARGE < m_mtCharge) {
if (m_mtCharge > MAX_MT_CHARGE) {
m_mtCharge = MAX_MT_CHARGE;
m_driftState = DriftState::ChargedMt;
}
Expand Down

0 comments on commit c74c64f

Please sign in to comment.