mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 06:51:47 +00:00
Remove and ifdef out currently unused code.
This commit is contained in:
parent
4249bba636
commit
d2c041cae6
3 changed files with 9 additions and 21 deletions
|
@ -46,16 +46,15 @@ typedef struct
|
||||||
} emitpoint_t;
|
} emitpoint_t;
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
pt_static,
|
pt_static,
|
||||||
pt_grav,
|
pt_grav,
|
||||||
pt_blob,
|
pt_blob,
|
||||||
pt_blob2,
|
pt_blob2,
|
||||||
pt_smoke,
|
pt_smoke,
|
||||||
pt_smokering,
|
pt_smokecloud,
|
||||||
pt_smokecloud,
|
|
||||||
pt_bloodcloud,
|
pt_bloodcloud,
|
||||||
pt_fadespark,
|
pt_fadespark,
|
||||||
pt_fadespark2,
|
pt_fadespark2,
|
||||||
pt_fallfadespark,
|
pt_fallfadespark,
|
||||||
pt_slowgrav,
|
pt_slowgrav,
|
||||||
pt_fire,
|
pt_fire,
|
||||||
|
|
|
@ -62,7 +62,6 @@ int ramp[8] = { 0x6d, 0x6b, 0x06, 0x05, 0x04, 0x03, 0x02, 0x01 };
|
||||||
extern int part_tex_dot;
|
extern int part_tex_dot;
|
||||||
extern int part_tex_spark;
|
extern int part_tex_spark;
|
||||||
extern int part_tex_smoke[8];
|
extern int part_tex_smoke[8];
|
||||||
extern int part_tex_smoke_ring[8];
|
|
||||||
|
|
||||||
extern cvar_t *cl_max_particles;
|
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 () & 255); // Misty-chan's Easter Egg
|
||||||
pcolor = (rand () & 3) + 12;
|
pcolor = (rand () & 3) + 12;
|
||||||
palpha = 128 + (rand () & 31);
|
palpha = 128 + (rand () & 31);
|
||||||
// VectorVectors(vec, right, up); // Mercury's Rings
|
|
||||||
VectorCopy (ent->old_origin, porg);
|
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];
|
ptex = part_tex_smoke[rand () & 7];
|
||||||
break;
|
break;
|
||||||
case 1: // grenade trail
|
case 1: // grenade trail
|
||||||
|
@ -668,12 +664,6 @@ R_DrawParticles (void)
|
||||||
if ((part->alpha -= r_frametime * 96) < 1)
|
if ((part->alpha -= r_frametime * 96) < 1)
|
||||||
part->die = -1;
|
part->die = -1;
|
||||||
part->scale += r_frametime * 4;
|
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;
|
// part->org[2] += r_frametime * 30 - grav;
|
||||||
break;
|
break;
|
||||||
case pt_smokecloud:
|
case pt_smokecloud:
|
||||||
|
|
|
@ -43,12 +43,10 @@ extern void noise_plasma(unsigned char *noise, int size);
|
||||||
static void GDT_InitDotParticleTexture (void);
|
static void GDT_InitDotParticleTexture (void);
|
||||||
static void GDT_InitSparkParticleTexture (void);
|
static void GDT_InitSparkParticleTexture (void);
|
||||||
static void GDT_InitSmokeParticleTexture (void);
|
static void GDT_InitSmokeParticleTexture (void);
|
||||||
static void GDT_InitSmokeRingParticleTexture (void);
|
|
||||||
|
|
||||||
int part_tex_dot;
|
int part_tex_dot;
|
||||||
int part_tex_spark;
|
int part_tex_spark;
|
||||||
int part_tex_smoke[8];
|
int part_tex_smoke[8];
|
||||||
int part_tex_smoke_ring[8];
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
|
@ -57,7 +55,6 @@ GDT_Init (void)
|
||||||
GDT_InitDotParticleTexture ();
|
GDT_InitDotParticleTexture ();
|
||||||
GDT_InitSparkParticleTexture ();
|
GDT_InitSparkParticleTexture ();
|
||||||
GDT_InitSmokeParticleTexture ();
|
GDT_InitSmokeParticleTexture ();
|
||||||
GDT_InitSmokeRingParticleTexture ();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
@ -159,6 +156,7 @@ GDT_InitSmokeParticleTexture (void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
static void
|
static void
|
||||||
GDT_InitSmokeRingParticleTexture (void)
|
GDT_InitSmokeRingParticleTexture (void)
|
||||||
{
|
{
|
||||||
|
@ -202,3 +200,4 @@ GDT_InitSmokeRingParticleTexture (void)
|
||||||
GL_UNSIGNED_BYTE, data);
|
GL_UNSIGNED_BYTE, data);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue