diff options
| author | 2022-08-29 18:49:55 +0100 | |
|---|---|---|
| committer | 2022-09-13 22:28:28 +0100 | |
| commit | 378892d089b6742a95b8d573af58535597f19d25 (patch) | |
| tree | c8fc6510e7a2ed985ed1f86566678a4ce3cd3801 | |
| parent | 1176de101485c35ba5e6d77973dc9e7f71ae2e1f (diff) | |
| download | sst-378892d089b6742a95b8d573af58535597f19d25.tar.gz sst-378892d089b6742a95b8d573af58535597f19d25.zip | |
Enforce L4D2 FPS limit properly when loaded late
Shoutouts to Lokki for accidentally reporting this bug.
| -rw-r--r-- | src/fixes.c | 3 | 
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  	}  } | 
