mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
Prevent turning on first tic of an SR50 (#1549)
This commit is contained in:
parent
4d3c380f0d
commit
d01684467c
@ -614,12 +614,15 @@ void G_BuildTiccmd(ticcmd_t* cmd)
|
||||
turnheld += ticdup;
|
||||
|
||||
if (strafe)
|
||||
{
|
||||
if (!cmd->angleturn)
|
||||
{
|
||||
if (turnright)
|
||||
side += sidemove[speed];
|
||||
if (turnleft)
|
||||
side -= sidemove[speed];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
// use two stage accelerative turning on the keyboard and joystick
|
||||
@ -649,7 +652,7 @@ void G_BuildTiccmd(ticcmd_t* cmd)
|
||||
|
||||
if (I_UseController())
|
||||
{
|
||||
if (axes[AXIS_TURN] && strafe)
|
||||
if (axes[AXIS_TURN] && strafe && !cmd->angleturn)
|
||||
{
|
||||
side += CalcControllerSideTurn(speed);
|
||||
}
|
||||
@ -667,7 +670,7 @@ void G_BuildTiccmd(ticcmd_t* cmd)
|
||||
|
||||
// Mouse
|
||||
|
||||
if (mousex && strafe)
|
||||
if (mousex && strafe && !cmd->angleturn)
|
||||
{
|
||||
const double mouseside = CalcMouseSide(mousex);
|
||||
side += CarryMouseSide(mouseside);
|
||||
|
Loading…
x
Reference in New Issue
Block a user