Should fix beam bug

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2571 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2007-08-06 14:22:58 +00:00
parent 275a3fdc63
commit eb94fb00d6
1 changed files with 2 additions and 1 deletions

View File

@ -2436,6 +2436,7 @@ CL_UpdateBeams
*/
void CL_UpdateBeams (void)
{
int bnum;
int i, j;
beam_t *b;
vec3_t dist, org;
@ -2450,7 +2451,7 @@ void CL_UpdateBeams (void)
extern cvar_t cl_truelightning, v_viewheight;
// update lightning
for (i=0, b=cl_beams; i < beams_running; i++, b++)
for (bnum=0, b=cl_beams; bnum < beams_running; bnum++, b++)
{
if (!b->model)
continue;