From 371c82fc4a9fa77518690da0da01a66c75266786 Mon Sep 17 00:00:00 2001 From: mittorn Date: Sun, 17 Apr 2016 14:29:47 +0000 Subject: [PATCH] Check +speed value --- cl_dll/input_xash3d.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cl_dll/input_xash3d.cpp b/cl_dll/input_xash3d.cpp index b375eb2..78c56c7 100644 --- a/cl_dll/input_xash3d.cpp +++ b/cl_dll/input_xash3d.cpp @@ -214,6 +214,11 @@ 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) + { + cmd->forwardmove *= cl_movespeedkey->value; + cmd->sidemove *= cl_movespeedkey->value; + } } ac_sidemove = ac_forwardmove = rel_pitch = rel_yaw = 0;