From 894b18f1f20e9c68c181020c6a59bb008d57fa08 Mon Sep 17 00:00:00 2001 From: Andrei Drexler Date: Sun, 24 Dec 2023 14:01:52 +0100 Subject: [PATCH] Smooth console scrolling deadzone transition --- Quake/in_sdl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Quake/in_sdl.c b/Quake/in_sdl.c index 03653bb70..9ef538065 100644 --- a/Quake/in_sdl.c +++ b/Quake/in_sdl.c @@ -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) {