Clamp `scr_conspeed` to `0.1f` and use `Cvar_Set()`.
Pointed out by @maraakate.
This commit is contained in:
parent
bfa25a13d9
commit
80c637b5d6
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue