Skip to content

Commit

Permalink
Smooth console scrolling deadzone transition
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-drexler committed Dec 24, 2023
1 parent 8eed3ee commit 894b18f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Quake/in_sdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ void IN_Commands (void)
scale = fabs (eased.y);
if (scale > scrollthreshold)
{
scale = (scale - scrollthreshold) / (1.f - scrollthreshold);
timer -= scale * host_rawframetime;
if (timer < 0.0)
{
Expand Down

0 comments on commit 894b18f

Please sign in to comment.