mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
clear beam end time when beams expire
This commit is contained in:
parent
652907bc58
commit
ce2cfbcf45
2 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue