Skip to content

Commit

Permalink
Merge pull request nzp-team#42 from tyleryoung88/main
Browse files Browse the repository at this point in the history
  • Loading branch information
MotoLegacy authored Nov 30, 2023
2 parents 466a375 + cec19cc commit b77b49e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions source/in_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,7 @@ extern float cl_forwardspeed;
extern float cl_sidespeed;
extern cvar_t in_aimassist;
qboolean croshhairmoving;
extern qboolean paused_hack;

float client_sprinting;

Expand Down Expand Up @@ -773,8 +774,11 @@ void IN_JoyMove (usercmd_t *cmd)
speed = speed * (sensitivity.value / 11.0);

//shpuld end
cl.viewangles[YAW] -= lookEased.x * speed * joy_sensitivity_yaw.value * host_frametime;
cl.viewangles[PITCH] += lookEased.y * speed * joy_sensitivity_pitch.value * (joy_invert.value ? -1.0 : 1.0) * host_frametime;
if(paused_hack != true)
{
cl.viewangles[YAW] -= lookEased.x * speed * joy_sensitivity_yaw.value * host_frametime;
cl.viewangles[PITCH] += lookEased.y * speed * joy_sensitivity_pitch.value * (joy_invert.value ? -1.0 : 1.0) * host_frametime;
}

if (lookEased.x != 0 || lookEased.y != 0)
V_StopPitchDrift();
Expand Down

0 comments on commit b77b49e

Please sign in to comment.