mirror of
https://github.com/ZDoom/Raze.git
synced 2025-04-04 23:12:15 +00:00
- Apply cl_noturnscaling
CVAR from feaaf2c15a
to GameInput::processVehicle()
.
This commit is contained in:
parent
ae39645169
commit
80da809e0c
1 changed files with 3 additions and 1 deletions
|
@ -215,9 +215,11 @@ void GameInput::processVehicle(PlayerAngles* const plrAngles, const float scaleA
|
|||
// Input device turning.
|
||||
const auto hidLeft = mouseInput.X < 0 || joyAxes[JOYAXIS_Yaw] > 0;
|
||||
const auto hidRight = mouseInput.X > 0 || joyAxes[JOYAXIS_Yaw] < 0;
|
||||
const auto hidDir = hidRight - hidLeft;
|
||||
|
||||
// Velocity setup.
|
||||
const auto turnVel = (!(flags & VEH_SCALETURN) && (isTurboTurnTime() || hidLeft || hidRight)) ? (baseVel) : (baseVel * velScale);
|
||||
const auto scaleVel = !(flags & VEH_SCALETURN) && (cl_noturnscaling || hidDir || isTurboTurnTime());
|
||||
const auto turnVel = scaleVel ? baseVel : baseVel * velScale;
|
||||
const auto mouseVel = abs(turnVel * mouseInput.X * m_yaw) * (45.f / 2048.f) / scaleAdjust;
|
||||
const auto maxVel = abs(turnVel * 1.5f);
|
||||
|
||||
|
|
Loading…
Reference in a new issue