From f5c168b8a572601511b91973a2120af02007be86 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 2 Apr 2001 23:38:56 +0000 Subject: [PATCH] sw currently can't cope with 0 particles --- qw/source/r_part.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qw/source/r_part.c b/qw/source/r_part.c index 1b662cd35..05c9b6128 100644 --- a/qw/source/r_part.c +++ b/qw/source/r_part.c @@ -61,7 +61,7 @@ void R_InitParticles (void) { // Misty-chan: Chooses cvar if bigger than zero, otherwise ignore and set variable to zero. Deek showed this to me. - r_numparticles = max(cl_max_particles->int_val, 0); + r_numparticles = max(cl_max_particles->int_val, 1); particles = (particle_t *) Hunk_AllocName (r_numparticles * sizeof (particle_t), "particles");