Remove and ifdef out currently unused code.

This commit is contained in:
Ragnvald Maartmann-Moe IV 2001-09-05 04:25:47 +00:00
parent 4249bba636
commit d2c041cae6
3 changed files with 9 additions and 21 deletions

View File

@ -46,16 +46,15 @@ typedef struct
} emitpoint_t;
typedef enum {
pt_static,
pt_grav,
pt_blob,
pt_static,
pt_grav,
pt_blob,
pt_blob2,
pt_smoke,
pt_smokering,
pt_smokecloud,
pt_smoke,
pt_smokecloud,
pt_bloodcloud,
pt_fadespark,
pt_fadespark2,
pt_fadespark,
pt_fadespark2,
pt_fallfadespark,
pt_slowgrav,
pt_fire,

View File

@ -62,7 +62,6 @@ int ramp[8] = { 0x6d, 0x6b, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01 };
extern int part_tex_dot;
extern int part_tex_spark;
extern int part_tex_smoke[8];
extern int part_tex_smoke_ring[8];
extern cvar_t *cl_max_particles;
@ -492,10 +491,7 @@ R_RocketTrail (int type, entity_t *ent)
// pcolor = (rand () & 255); // Misty-chan's Easter Egg
pcolor = (rand () & 3) + 12;
palpha = 128 + (rand () & 31);
// VectorVectors(vec, right, up); // Mercury's Rings
VectorCopy (ent->old_origin, porg);
// ptype = pt_smokering; // Mercury's Rings
// ptex = part_tex_smoke_ring[rand () & 7]; // Mercury's Rings
ptex = part_tex_smoke[rand () & 7];
break;
case 1: // grenade trail
@ -668,12 +664,6 @@ R_DrawParticles (void)
if ((part->alpha -= r_frametime * 96) < 1)
part->die = -1;
part->scale += r_frametime * 4;
// part->org[2] += r_frametime * 30 - grav;
break;
case pt_smokering:
if ((part->alpha -= r_frametime * 128) < 1)
part->die = -1;
part->scale += r_frametime * 10;
// part->org[2] += r_frametime * 30 - grav;
break;
case pt_smokecloud:

View File

@ -43,12 +43,10 @@ extern void noise_plasma(unsigned char *noise, int size);
static void GDT_InitDotParticleTexture (void);
static void GDT_InitSparkParticleTexture (void);
static void GDT_InitSmokeParticleTexture (void);
static void GDT_InitSmokeRingParticleTexture (void);
int part_tex_dot;
int part_tex_spark;
int part_tex_smoke[8];
int part_tex_smoke_ring[8];
void
@ -57,7 +55,6 @@ GDT_Init (void)
GDT_InitDotParticleTexture ();
GDT_InitSparkParticleTexture ();
GDT_InitSmokeParticleTexture ();
GDT_InitSmokeRingParticleTexture ();
}
static void
@ -159,6 +156,7 @@ GDT_InitSmokeParticleTexture (void)
}
}
#if 0
static void
GDT_InitSmokeRingParticleTexture (void)
{
@ -202,3 +200,4 @@ GDT_InitSmokeRingParticleTexture (void)
GL_UNSIGNED_BYTE, data);
}
}
#endif