summaryrefslogtreecommitdiffhomepage
path: root/src/fixes.c
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-08-29 18:49:55 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-09-13 22:28:28 +0100
commit378892d089b6742a95b8d573af58535597f19d25 (patch)
treec8fc6510e7a2ed985ed1f86566678a4ce3cd3801 /src/fixes.c
parent1176de101485c35ba5e6d77973dc9e7f71ae2e1f (diff)
Enforce L4D2 FPS limit properly when loaded late
Shoutouts to Lokki for accidentally reporting this bug.
Diffstat (limited to 'src/fixes.c')
-rw-r--r--src/fixes.c3
1 files changed, 2 insertions, 1 deletions
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
}
}