Clamped r_maxparticles to the internal limit

This commit is contained in:
Edward Richardson 2016-01-30 22:04:09 +13:00
parent 409525cde6
commit fe52f98459

View file

@ -132,6 +132,8 @@ CUSTOM_CVAR( Int, r_maxparticles, 4000, CVAR_ARCHIVE )
{
if ( self == 0 )
self = 4000;
else if (self > 65535)
self = 65535;
else if (self < 100)
self = 100;