slight optimisation

This commit is contained in:
Bill Currie 2000-04-17 12:36:25 +00:00
parent 28011090b3
commit 9cd517debc

View file

@ -944,7 +944,7 @@ void
R_DrawFire (fire_t *f)
{
int i, j;
vec3_t vec;
vec3_t vec,vec2;
float radius;
float *b_sin, *b_cos;
@ -972,15 +972,14 @@ R_DrawFire (fire_t *f)
// don't panic, this just draws a bubble...
for (i=16 ; i>=0 ; i--)
{
for (j=0 ; j<3 ; j++)
for (j=0 ; j<3 ; j++) {
vec[j] = f->origin[j] + (*b_cos * vright[j]
+ vup[j]*(*b_sin)) * radius;
glVertex3fv (vec);
for (j=0 ; j<3 ; j++)
vec[j] = f->owner[j] + (*b_cos * vright[j]
vec2[j] = f->owner[j] + (*b_cos * vright[j]
+ vup[j]*(*b_sin)) * radius;
}
glVertex3fv (vec);
glVertex3fv (vec2);
b_sin++;
b_cos++;