git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11945
d7cf8633-e32d-0410-b094-
e92efae38249
*/
void CL_EntityParticles (const entity_t *ent)
{
*/
void CL_EntityParticles (const entity_t *ent)
{
vec_t pitch, yaw, dist = 64, beamlength = 16;
vec3_t org, v;
static vec3_t avelocities[NUMVERTEXNORMALS];
vec_t pitch, yaw, dist = 64, beamlength = 16;
vec3_t org, v;
static vec3_t avelocities[NUMVERTEXNORMALS];
Matrix4x4_OriginFromMatrix(&ent->render.matrix, org);
if (!avelocities[0][0])
Matrix4x4_OriginFromMatrix(&ent->render.matrix, org);
if (!avelocities[0][0])
- for (i = 0;i < NUMVERTEXNORMALS * 3;i++)
- avelocities[0][i] = lhrandom(0, 2.55);
+ for (i = 0;i < NUMVERTEXNORMALS;i++)
+ for (j = 0;j < 3;j++)
+ avelocities[i][j] = lhrandom(0, 2.55);
for (i = 0;i < NUMVERTEXNORMALS;i++)
{
for (i = 0;i < NUMVERTEXNORMALS;i++)
{