Browse Source

Fix typo.

hltopdown
Andrey Akhmichin 5 years ago
parent
commit
41a4bebe86
  1. 4
      pm_shared/pm_shared.c

4
pm_shared/pm_shared.c

@ -2141,9 +2141,9 @@ void PM_LadderMove( physent_t *pLadder ) @@ -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 ) ) ) );

Loading…
Cancel
Save