From 80c637b5d6fa7d77e82d2ae8ea83d3ce485d0673 Mon Sep 17 00:00:00 2001 From: Yamagi Date: Fri, 5 Mar 2021 10:29:46 +0100 Subject: [PATCH] Clamp `scr_conspeed` to `0.1f` and use `Cvar_Set()`. Pointed out by @maraakate. --- src/client/cl_screen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/cl_screen.c b/src/client/cl_screen.c index fdb3eccd..00e9cd18 100644 --- a/src/client/cl_screen.c +++ b/src/client/cl_screen.c @@ -501,9 +501,9 @@ SCR_RunConsole(void) { /* src_conspeed must be a positiv integer, otherwise things go wrong. Clamp it. */ - if (scr_conspeed->value < 1) + if (scr_conspeed->value < 0.1f) { - scr_conspeed->value = 1; + Cvar_Set("scr_conspeed", "0.1"); } /* decide on the height of the console */