diff --git a/src/doom/g_game.c b/src/doom/g_game.c index 47d3c1a20..da8d69095 100644 --- a/src/doom/g_game.c +++ b/src/doom/g_game.c @@ -860,15 +860,15 @@ void G_BuildTiccmd (ticcmd_t* cmd, int maketic) if (strafe && !cmd->angleturn) side += CarryMouseSide(CalcMouseSide(mousex)); - if (mousex == 0) + mousex_angleturn = cmd->angleturn; + + if (mousex_angleturn == 0) { // No movement in the previous frame testcontrols_mousespeed = 0; } - mousex_angleturn = cmd->angleturn; - if (angle) { cmd->angleturn = CarryAngle(cmd->angleturn + angle); diff --git a/src/heretic/g_game.c b/src/heretic/g_game.c index 55e6328c9..47b470aca 100644 --- a/src/heretic/g_game.c +++ b/src/heretic/g_game.c @@ -892,13 +892,13 @@ void G_BuildTiccmd(ticcmd_t *cmd, int maketic) // No mouse movement in previous frame? - if (mousex == 0) + mousex_angleturn = cmd->angleturn; + + if (mousex_angleturn == 0) { testcontrols_mousespeed = 0; } - mousex_angleturn = cmd->angleturn; - if (angle) { cmd->angleturn = CarryAngle(cmd->angleturn + angle); diff --git a/src/hexen/g_game.c b/src/hexen/g_game.c index 02fd82e78..5cf9df6c6 100644 --- a/src/hexen/g_game.c +++ b/src/hexen/g_game.c @@ -824,13 +824,13 @@ void G_BuildTiccmd(ticcmd_t *cmd, int maketic) side += CarryMouseSide(CalcMouseSide(mousex)); } - if (mousex == 0) + mousex_angleturn = cmd->angleturn; + + if (mousex_angleturn == 0) { testcontrols_mousespeed = 0; } - mousex_angleturn = cmd->angleturn; - if (angle) { cmd->angleturn = CarryAngle(cmd->angleturn + angle); diff --git a/src/strife/g_game.c b/src/strife/g_game.c index 598df706d..2f261695c 100644 --- a/src/strife/g_game.c +++ b/src/strife/g_game.c @@ -862,15 +862,15 @@ void G_BuildTiccmd (ticcmd_t* cmd, int maketic) if (strafe && !cmd->angleturn) side += CarryMouseSide(CalcMouseSide(mousex)); - if (mousex == 0) + mousex_angleturn = cmd->angleturn; + + if (mousex_angleturn == 0) { // No movement in the previous frame testcontrols_mousespeed = 0; } - mousex_angleturn = cmd->angleturn; - if (angle) { cmd->angleturn = CarryAngle(cmd->angleturn + angle);