Merge pull request #518 from Edward850/Particle-clamp

Clamped r_maxparticles to the internal limit
This commit is contained in:
coelckers 2016-01-30 15:21:55 +01:00
commit ccce6f44a2

View file

@ -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 )