diff options
author | Andrey Nazarov <skuller@skuller.net> | 2013-10-19 20:28:01 +0400 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2013-10-19 20:28:01 +0400 |
commit | 35a992e557d09c58d6cd21c2650e3798f5a6e885 (patch) | |
tree | 9b0455b51a27487f13c142de39e089b42c60842b | |
parent | 7f2db1a818c8b176b4c6bb5a0ca01ea63d78348c (diff) |
Silence GCC warning.
-rw-r--r-- | src/client/effects.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/effects.c b/src/client/effects.c index 8bff6fd..02250a6 100644 --- a/src/client/effects.c +++ b/src/client/effects.c @@ -1835,10 +1835,11 @@ void CL_ClearEffects(void) void CL_InitEffects(void) { - int i; + int i, j; - for (i = 0; i < NUMVERTEXNORMALS * 3; i++) - avelocities[0][i] = (rand() & 255) * 0.01; + for (i = 0; i < NUMVERTEXNORMALS; i++) + for (j = 0; j < 3; j++) + avelocities[i][j] = (rand() & 255) * 0.01f; } |