From 378892d089b6742a95b8d573af58535597f19d25 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 29 Aug 2022 18:49:55 +0100 Subject: Enforce L4D2 FPS limit properly when loaded late Shoutouts to Lokki for accidentally reporting this bug. --- src/fixes.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/fixes.c b/src/fixes.c index 86e2f17..ab73524 100644 --- a/src/fixes.c +++ b/src/fixes.c @@ -91,8 +91,9 @@ static void generalfixes(void) { // prevent breaking the engine v->parent->hasmax = true; v->parent->maxval = 1000; } - // also show the lower limit in help. engine should enforce anyway + // also show the lower limit in help, and prevent 0 (which is unlimited) v->parent->hasmin = true; v->parent->minval = 30; + con_setvarf(v, con_getvarf(v)); // hack: reapply limit if we loaded late } } -- cgit v1.2.3