mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-22 12:41:21 +00:00
Silence another 2 gcc48 warnings due to creative array usage
This is nearly the same case as in 1bee58840d
and should be a no-op.
This commit is contained in:
parent
1bee58840d
commit
9def7d908f
1 changed files with 8 additions and 4 deletions
|
@ -1619,9 +1619,11 @@ CL_FlyParticles(vec3_t origin, int count)
|
|||
|
||||
if (!avelocities[0][0])
|
||||
{
|
||||
for (i = 0; i < NUMVERTEXNORMALS * 3; i++)
|
||||
for (i = 0; i < NUMVERTEXNORMALS; i++)
|
||||
{
|
||||
avelocities[0][i] = (randk() & 255) * 0.01f;
|
||||
avelocities[i][0] = (randk() & 255) * 0.01f;
|
||||
avelocities[i][1] = (randk() & 255) * 0.01f;
|
||||
avelocities[i][2] = (randk() & 255) * 0.01f;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1726,9 +1728,11 @@ CL_BfgParticles(entity_t *ent)
|
|||
|
||||
if (!avelocities[0][0])
|
||||
{
|
||||
for (i = 0; i < NUMVERTEXNORMALS * 3; i++)
|
||||
for (i = 0; i < NUMVERTEXNORMALS; i++)
|
||||
{
|
||||
avelocities[0][i] = (randk() & 255) * 0.01f;
|
||||
avelocities[i][0] = (randk() & 255) * 0.01f;
|
||||
avelocities[i][1] = (randk() & 255) * 0.01f;
|
||||
avelocities[i][2] = (randk() & 255) * 0.01f;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue