clear beam end time when beams expire

This commit is contained in:
Bill Currie 2002-10-11 22:13:40 +00:00
parent 652907bc58
commit ce2cfbcf45
2 changed files with 6 additions and 0 deletions

View file

@ -465,7 +465,10 @@ CL_UpdateBeams (void)
// update lightning // update lightning
for (i = 0, b = cl_beams; i < MAX_BEAMS; i++, b++) { for (i = 0, b = cl_beams; i < MAX_BEAMS; i++, b++) {
if (!b->endtime)
continue;
if (!b->model || b->endtime < cl.time) { if (!b->model || b->endtime < cl.time) {
b->endtime = 0;
beam_clear (b); beam_clear (b);
continue; continue;
} }

View file

@ -479,7 +479,10 @@ CL_UpdateBeams (void)
// update lightning // update lightning
for (i = 0, b = cl_beams; i < MAX_BEAMS; i++, b++) { for (i = 0, b = cl_beams; i < MAX_BEAMS; i++, b++) {
if (!b->endtime)
continue;
if (!b->model || b->endtime < cl.time) { if (!b->model || b->endtime < cl.time) {
b->endtime = 0;
beam_clear (b); beam_clear (b);
continue; continue;
} }