Clamp `scr_conspeed` to `0.1f` and use `Cvar_Set()`.

Pointed out by @maraakate.
This commit is contained in:
Yamagi 2021-03-05 10:29:46 +01:00
parent bfa25a13d9
commit 80c637b5d6
1 changed files with 2 additions and 2 deletions

View File

@ -501,9 +501,9 @@ SCR_RunConsole(void)
{ {
/* src_conspeed must be a positiv integer, /* src_conspeed must be a positiv integer,
otherwise things go wrong. Clamp it. */ 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 */ /* decide on the height of the console */