Change particle limit from a short to an unsigned int. Possibly a tiny speedup, also allows for absurd particle counts...

This commit is contained in:
Ragnvald Maartmann-Moe IV 2001-10-30 19:42:29 +00:00
parent 3b2d2a1c88
commit 3ad79cc970
2 changed files with 3 additions and 4 deletions

View file

@ -74,8 +74,8 @@ struct cvar_s;
void R_MaxParticlesCheck (struct cvar_s *r_particles,
struct cvar_s *cl_max_particles);
extern short r_maxparticles;
extern short numparticles;
extern unsigned int r_maxparticles;
extern unsigned int numparticles;
extern struct particle_s *active_particles;
extern struct particle_s *free_particles;
extern struct particle_s *particles;

View file

@ -40,12 +40,11 @@ static const char rcsid[] =
#include "compat.h"
#include "r_local.h"
short r_maxparticles, numparticles;
unsigned int r_maxparticles, numparticles;
particle_t *active_particles, *free_particles, *particles, **freeparticles;
vec3_t r_pright, r_pup, r_ppn;
/*
R_MaxParticlesCheck