Fixed 1000 warnings, changed switch-statements to handle all enumerations. Sorted it up abit too.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2585 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Molgrum 2007-08-07 19:16:32 +00:00
parent 865a5a003d
commit 2dfb03ee03
8 changed files with 164 additions and 114 deletions

View file

@ -4449,23 +4449,25 @@ void DrawParticleTypes (void (*texturedparticles)(particle_t *,part_type_t*), vo
// prediction takes care of the rest
switch(type->type)
{
case PT_NORMAL:
pdraw = texturedparticles;
break;
case PT_BEAM:
if (*type->texname)
bdraw = beamparticlest;
else
bdraw = beamparticlesut;
break;
case PT_TEXTUREDSPARK:
pdraw = sparktexturedparticles;
case PT_DECAL:
break;
case PT_NORMAL:
pdraw = texturedparticles;
break;
case PT_SPARK:
pdraw = sparklineparticles;
break;
case PT_SPARKFAN:
pdraw = sparkfanparticles;
break;
case PT_SPARK:
pdraw = sparklineparticles;
case PT_TEXTUREDSPARK:
pdraw = sparktexturedparticles;
break;
}