From 41a4bebe861c46908acfecd3fdd90051b2046aeb Mon Sep 17 00:00:00 2001 From: Andrey Akhmichin Date: Sat, 27 Jul 2019 19:08:30 +0500 Subject: [PATCH] Fix typo. --- pm_shared/pm_shared.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pm_shared/pm_shared.c b/pm_shared/pm_shared.c index 13891ed4..2b006c03 100644 --- a/pm_shared/pm_shared.c +++ b/pm_shared/pm_shared.c @@ -2141,9 +2141,9 @@ void PM_LadderMove( physent_t *pLadder ) if( pmove->cmd.buttons & IN_FORWARD ) fmove += flSpeed; if( pmove->cmd.buttons & IN_MOVELEFT ) - fmove -= flSpeed; + smove -= flSpeed; if( pmove->cmd.buttons & IN_MOVERIGHT ) - fmove += flSpeed; + smove += flSpeed; forward = ( fmove * ( cos( pmove->cmd.viewangles[YAW] * ( M_PI / 180 ) ) ) ) - ( smove * ( sin( pmove->cmd.viewangles[YAW] * ( M_PI / 180 ) ) ) ); right = ( fmove * ( sin( pmove->cmd.viewangles[YAW] * ( M_PI / 180 ) ) ) ) + ( smove * ( cos( pmove->cmd.viewangles[YAW] * ( M_PI / 180 ) ) ) );