mirror of
https://github.com/YGGverse/hlsdk-portable.git
synced 2025-01-23 21:24:27 +00:00
Fix cl_movespeedkey multiplied twice
This commit is contained in:
parent
29f4c35e6e
commit
5bdb97c26c
@ -221,7 +221,7 @@ void IN_Move( float frametime, usercmd_t *cmd )
|
||||
IN_ToggleButtons( ac_forwardmove / ac_movecount, ac_sidemove / ac_movecount );
|
||||
if( ac_forwardmove ) cmd->forwardmove = ac_forwardmove * cl_forwardspeed->value / ac_movecount;
|
||||
if( ac_sidemove ) cmd->sidemove = ac_sidemove * cl_sidespeed->value / ac_movecount;
|
||||
if (in_speed.state & 1)
|
||||
if( (in_speed.state & 1) && ( ac_sidemove || ac_forwardmove ) )
|
||||
{
|
||||
cmd->forwardmove *= cl_movespeedkey->value;
|
||||
cmd->sidemove *= cl_movespeedkey->value;
|
||||
|
Loading…
x
Reference in New Issue
Block a user