Skip to content

Commit

Permalink
- Duke: Fix bad vehicle speed clamp change from e79c6ba.
Browse files Browse the repository at this point in the history
- Fixes #325.
- 🤦
  • Loading branch information
mjr4077au committed Apr 19, 2021
1 parent 3961fcc commit 4eaf05d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/games/duke/src/input.cpp
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4eaf05d

Please sign in to comment.