From: knghtbrd Date: Wed, 31 Jul 2002 03:07:50 +0000 (+0000) Subject: Fix for -particles specified wrongly on the cmdline.. X-Git-Tag: RELEASE_0_2_0_RC1~410 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=906f216fa496c053f76df0369e596e866730fdcb;p=xonotic%2Fdarkplaces.git Fix for -particles specified wrongly on the cmdline.. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@2134 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_particles.c b/cl_particles.c index 95f39ba4..813162ab 100644 --- a/cl_particles.c +++ b/cl_particles.c @@ -139,7 +139,7 @@ void CL_Particles_Init (void) i = COM_CheckParm ("-particles"); - if (i) + if (i && i < com_argc - 1) { cl_maxparticles = (int)(atoi(com_argv[i+1])); if (cl_maxparticles < ABSOLUTE_MIN_PARTICLES)