Skip to content

Commit 262daec

Browse files
committed
Fix subtick movement disabler not removing subtick viewangles
Forgot to test with the sv_subtick_movement_view_angles game cvar enabled before, now the cvar value shouldn't matter
1 parent c28e6d5 commit 262daec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/detours.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,8 @@ void* FASTCALL Detour_ProcessUsercmds(CCSPlayerController* pController, CUserCmd
558558
{
559559
uint64 button = iterator->button();
560560

561-
if (button >= IN_JUMP && button <= IN_MOVERIGHT && button != IN_USE)
561+
// Remove normal subtick movement inputs by button & subtick movement viewangles by pitch/yaw
562+
if ((button >= IN_JUMP && button <= IN_MOVERIGHT && button != IN_USE) || iterator->analog_pitch_delta() != 0.0f || iterator->analog_yaw_delta() != 0.0f)
562563
subtickMoves->erase(iterator);
563564
else
564565
iterator++;

0 commit comments

Comments
 (0)