From fe52f9845960ed7d8172d1ff6bb397cc7cb15700 Mon Sep 17 00:00:00 2001 From: Edward Richardson Date: Sat, 30 Jan 2016 22:04:09 +1300 Subject: [PATCH] Clamped r_maxparticles to the internal limit --- src/p_effect.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/p_effect.cpp b/src/p_effect.cpp index 84ed4c16f..62ddb7d3d 100644 --- a/src/p_effect.cpp +++ b/src/p_effect.cpp @@ -132,7 +132,9 @@ CUSTOM_CVAR( Int, r_maxparticles, 4000, CVAR_ARCHIVE ) { if ( self == 0 ) self = 4000; - else if ( self < 100 ) + else if (self > 65535) + self = 65535; + else if (self < 100) self = 100; if ( gamestate != GS_STARTUP )