From c59ac1ae9610f82425e56f08c7f9b8aac922df04 Mon Sep 17 00:00:00 2001 From: cypress Date: Sat, 18 May 2024 14:29:34 -0700 Subject: [PATCH] VITA/NX: Remove legacy sprint toggle hack --- source/cl_input.c | 2 -- source/in_sdl.c | 16 ---------------- 2 files changed, 18 deletions(-) diff --git a/source/cl_input.c b/source/cl_input.c index 243b412..44cba63 100644 --- a/source/cl_input.c +++ b/source/cl_input.c @@ -270,8 +270,6 @@ Moves the local angle positions ================ */ -extern float client_sprinting; //sB fix a bugggggggg and SQUASH - void CL_AdjustAngles (void) { float speed; diff --git a/source/in_sdl.c b/source/in_sdl.c index a0e0995..5943e47 100644 --- a/source/in_sdl.c +++ b/source/in_sdl.c @@ -697,8 +697,6 @@ extern cvar_t in_aimassist; qboolean croshhairmoving; extern qboolean paused_hack; -float client_sprinting; - void IN_JoyMove (usercmd_t *cmd) { #if defined(USE_SDL2) @@ -734,20 +732,6 @@ void IN_JoyMove (usercmd_t *cmd) speed = cl_movespeedkey.value; else speed = 1; - - if ((moveRaw.x > -0.65 && moveRaw.y < -0.65) || (moveRaw.x < 0.65 && moveRaw.y < -0.65)) { - // naievil -- Can stop sprinting, we hit the zone to stop (top 90 degrees of joycon) - // Set the flag to be able to sprint - if (!client_sprinting) { - Cbuf_AddText("impulse 32"); - } - client_sprinting = 1; - } else { - if (client_sprinting) { - Cbuf_AddText("impulse 31"); - } - client_sprinting = 0; - } cmd->sidemove += (cl_sidespeed * speed * moveEased.x); cmd->forwardmove -= (cl_forwardspeed * speed * moveEased.y);