From a5029f8b6e7f75bf22864c4f5b8e1e28dcf11da2 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Wed, 30 Mar 2016 01:13:57 +0400 Subject: [PATCH] Remove useless assignment in pmove --- rehlds/engine/sv_user.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rehlds/engine/sv_user.cpp b/rehlds/engine/sv_user.cpp index c15781e..16a62aa 100644 --- a/rehlds/engine/sv_user.cpp +++ b/rehlds/engine/sv_user.cpp @@ -940,10 +940,9 @@ void SV_RunCmd(usercmd_t *ucmd, int random_seed) sv_player->v.v_angle[0] = pmove->angles[0]; sv_player->v.v_angle[1] = pmove->angles[1]; sv_player->v.v_angle[2] = pmove->angles[2]; - sv_player->v.angles[0] = pmove->angles[0]; + sv_player->v.angles[0] = float(-pmove->angles[0] / 3.0); sv_player->v.angles[1] = pmove->angles[1]; sv_player->v.angles[2] = pmove->angles[2]; - sv_player->v.angles[0] = float(-pmove->angles[0] / 3.0); } sv_player->v.bInDuck = pmove->bInDuck; sv_player->v.flDuckTime = (int)pmove->flDuckTime;