- Duke: Fix bad vehicle speed clamp change from e79c6bacd3.

- Fixes #325.
- 🤦
This commit is contained in:
Mitchell Richters 2021-04-19 19:32:42 +10:00
parent 3961fcc28a
commit 4eaf05d95e
1 changed files with 1 additions and 1 deletions

View File

@ -755,7 +755,7 @@ static void processVehicleInput(player_struct *p, ControlInfo* const hidInput, I
input.avel = boatApplyTurn(p, hidInput, kbdLeft, kbdRight, scaleAdjust);
}
input.fvel = clamp(xs_CRoundToInt(p->MotoSpeed), -(MAXVELMOTO >> 3), MAXVELMOTO);
loc.fvel = clamp(xs_CRoundToInt(p->MotoSpeed), -(MAXVELMOTO >> 3), MAXVELMOTO);
input.avel *= BAngToDegree;
loc.avel += input.avel;
}